| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 6 #define CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 virtual bool IsOffTheRecord() OVERRIDE; | 39 virtual bool IsOffTheRecord() OVERRIDE; |
| 40 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 40 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
| 41 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 41 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
| 42 virtual bool HasOffTheRecordProfile() OVERRIDE; | 42 virtual bool HasOffTheRecordProfile() OVERRIDE; |
| 43 virtual Profile* GetOriginalProfile() OVERRIDE; | 43 virtual Profile* GetOriginalProfile() OVERRIDE; |
| 44 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; | 44 virtual ChromeAppCacheService* GetAppCacheService() OVERRIDE; |
| 45 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; | 45 virtual webkit_database::DatabaseTracker* GetDatabaseTracker() OVERRIDE; |
| 46 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; | 46 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; |
| 47 virtual ExtensionService* GetExtensionService() OVERRIDE; | 47 virtual ExtensionService* GetExtensionService() OVERRIDE; |
| 48 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE; | 48 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE; |
| 49 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() OVERRIDE; | |
| 50 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 49 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
| 51 virtual ExtensionMessageService* GetExtensionMessageService() OVERRIDE; | |
| 52 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; | 50 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; |
| 53 virtual ExtensionSpecialStoragePolicy* | 51 virtual ExtensionSpecialStoragePolicy* |
| 54 GetExtensionSpecialStoragePolicy() OVERRIDE; | 52 GetExtensionSpecialStoragePolicy() OVERRIDE; |
| 55 virtual SSLHostState* GetSSLHostState() OVERRIDE; | 53 virtual SSLHostState* GetSSLHostState() OVERRIDE; |
| 56 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | 54 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; |
| 57 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; | 55 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; |
| 58 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 56 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
| 59 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 57 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
| 60 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 58 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
| 61 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 59 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 87 virtual bool DidLastSessionExitCleanly() OVERRIDE; | 85 virtual bool DidLastSessionExitCleanly() OVERRIDE; |
| 88 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 86 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
| 89 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 87 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
| 90 virtual TokenService* GetTokenService() OVERRIDE; | 88 virtual TokenService* GetTokenService() OVERRIDE; |
| 91 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 89 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
| 92 virtual Time GetStartTime() const OVERRIDE; | 90 virtual Time GetStartTime() const OVERRIDE; |
| 93 virtual WebKitContext* GetWebKitContext() OVERRIDE; | 91 virtual WebKitContext* GetWebKitContext() OVERRIDE; |
| 94 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 92 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
| 95 virtual history::TopSites* GetTopSites() OVERRIDE; | 93 virtual history::TopSites* GetTopSites() OVERRIDE; |
| 96 virtual void MarkAsCleanShutdown() OVERRIDE; | 94 virtual void MarkAsCleanShutdown() OVERRIDE; |
| 97 virtual void InitExtensions(bool extensions_enabled) OVERRIDE; | |
| 98 virtual void InitPromoResources() OVERRIDE; | 95 virtual void InitPromoResources() OVERRIDE; |
| 99 virtual void InitRegisteredProtocolHandlers() OVERRIDE; | 96 virtual void InitRegisteredProtocolHandlers() OVERRIDE; |
| 100 virtual FilePath last_selected_directory() OVERRIDE; | 97 virtual FilePath last_selected_directory() OVERRIDE; |
| 101 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 98 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
| 102 | 99 |
| 103 #if defined(OS_CHROMEOS) | 100 #if defined(OS_CHROMEOS) |
| 104 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; | 101 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; |
| 105 virtual void InitChromeOSPreferences() OVERRIDE; | 102 virtual void InitChromeOSPreferences() OVERRIDE; |
| 106 #endif // defined(OS_CHROMEOS) | 103 #endif // defined(OS_CHROMEOS) |
| 107 | 104 |
| 108 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE; | 105 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE; |
| 109 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE; | 106 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE; |
| 110 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; | 107 virtual ChromeBlobStorageContext* GetBlobStorageContext() OVERRIDE; |
| 111 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; | |
| 112 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; | 108 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; |
| 113 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; | 109 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; |
| 114 | 110 |
| 115 #if defined(OS_CHROMEOS) | 111 #if defined(OS_CHROMEOS) |
| 116 virtual void ChangeAppLocale(const std::string& locale, | 112 virtual void ChangeAppLocale(const std::string& locale, |
| 117 AppLocaleChangedVia) OVERRIDE; | 113 AppLocaleChangedVia) OVERRIDE; |
| 118 virtual void OnLogin() OVERRIDE; | 114 virtual void OnLogin() OVERRIDE; |
| 119 #endif // defined(OS_CHROMEOS) | 115 #endif // defined(OS_CHROMEOS) |
| 120 | 116 |
| 121 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 117 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 135 content::NotificationRegistrar registrar_; | 131 content::NotificationRegistrar registrar_; |
| 136 | 132 |
| 137 // The real underlying profile. | 133 // The real underlying profile. |
| 138 Profile* profile_; | 134 Profile* profile_; |
| 139 | 135 |
| 140 // Weak pointer owned by |profile_|. | 136 // Weak pointer owned by |profile_|. |
| 141 PrefService* prefs_; | 137 PrefService* prefs_; |
| 142 | 138 |
| 143 OffTheRecordProfileIOData::Handle io_data_; | 139 OffTheRecordProfileIOData::Handle io_data_; |
| 144 | 140 |
| 145 // Must be freed before |io_data_|. While |extension_process_manager_| still | |
| 146 // lives, we handle incoming resource requests from extension processes and | |
| 147 // those require access to the ResourceContext owned by |io_data_|. | |
| 148 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | |
| 149 | |
| 150 // We use a non-persistent content settings map for OTR. | 141 // We use a non-persistent content settings map for OTR. |
| 151 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 142 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
| 152 | 143 |
| 153 // Use a separate zoom map for OTR. | 144 // Use a separate zoom map for OTR. |
| 154 scoped_refptr<content::HostZoomMap> host_zoom_map_; | 145 scoped_refptr<content::HostZoomMap> host_zoom_map_; |
| 155 | 146 |
| 156 // Use a special WebKit context for OTR browsing. | 147 // Use a special WebKit context for OTR browsing. |
| 157 scoped_refptr<WebKitContext> webkit_context_; | 148 scoped_refptr<WebKitContext> webkit_context_; |
| 158 | 149 |
| 159 // We don't want SSLHostState from the OTR profile to leak back to the main | 150 // We don't want SSLHostState from the OTR profile to leak back to the main |
| (...skipping 20 matching lines...) Expand all Loading... |
| 180 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 171 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
| 181 | 172 |
| 182 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 173 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
| 183 | 174 |
| 184 scoped_refptr<quota::QuotaManager> quota_manager_; | 175 scoped_refptr<quota::QuotaManager> quota_manager_; |
| 185 | 176 |
| 186 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 177 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
| 187 }; | 178 }; |
| 188 | 179 |
| 189 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 180 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
| OLD | NEW |