25 QUrl, |
25 QUrl, |
26 pyqtSignal, |
26 pyqtSignal, |
27 pyqtSlot, |
27 pyqtSlot, |
28 ) |
28 ) |
29 |
29 |
30 from eric7 import Globals, Preferences |
30 from eric7 import EricUtilities, Preferences |
31 from eric7.EricGui import EricPixmapCache |
31 from eric7.EricGui import EricPixmapCache |
32 from eric7.SystemUtilities import OSUtilities |
32 from eric7.SystemUtilities import OSUtilities |
33 from eric7.UI.NotificationWidget import NotificationTypes |
33 from eric7.UI.NotificationWidget import NotificationTypes |
34 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
34 from eric7.WebBrowser.WebBrowserWindow import WebBrowserWindow |
35 |
35 |
66 self.__apiClient = SafeBrowsingAPIClient(self.__apiKey, parent=self) |
66 self.__apiClient = SafeBrowsingAPIClient(self.__apiKey, parent=self) |
67 else: |
67 else: |
68 self.__apiClient = None |
68 self.__apiClient = None |
69 |
69 |
70 gsbCachePath = os.path.join( |
70 gsbCachePath = os.path.join( |
71 Globals.getConfigDir(), "web_browser", "safe_browsing" |
71 EricUtilities.getConfigDir(), "web_browser", "safe_browsing" |
72 ) |
72 ) |
73 self.__cache = SafeBrowsingCache(gsbCachePath, self) |
73 self.__cache = SafeBrowsingCache(gsbCachePath, self) |
74 |
74 |
75 self.__gsbDialog = None |
75 self.__gsbDialog = None |
76 self.__setPlatforms() |
76 self.__setPlatforms() |