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 22 matching lines...) Expand all Loading... |
33 virtual ~OffTheRecordProfileImpl(); | 33 virtual ~OffTheRecordProfileImpl(); |
34 void Init(); | 34 void Init(); |
35 | 35 |
36 // Profile implementation. | 36 // Profile implementation. |
37 virtual std::string GetProfileName() OVERRIDE; | 37 virtual std::string GetProfileName() OVERRIDE; |
38 virtual Profile* GetOffTheRecordProfile() OVERRIDE; | 38 virtual Profile* GetOffTheRecordProfile() OVERRIDE; |
39 virtual void DestroyOffTheRecordProfile() OVERRIDE; | 39 virtual void DestroyOffTheRecordProfile() OVERRIDE; |
40 virtual bool HasOffTheRecordProfile() OVERRIDE; | 40 virtual bool HasOffTheRecordProfile() OVERRIDE; |
41 virtual Profile* GetOriginalProfile() OVERRIDE; | 41 virtual Profile* GetOriginalProfile() OVERRIDE; |
42 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; | 42 virtual VisitedLinkMaster* GetVisitedLinkMaster() OVERRIDE; |
| 43 virtual ExtensionPrefValueMap* GetExtensionPrefValueMap() OVERRIDE; |
43 virtual ExtensionService* GetExtensionService() OVERRIDE; | 44 virtual ExtensionService* GetExtensionService() OVERRIDE; |
44 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE; | 45 virtual UserScriptMaster* GetUserScriptMaster() OVERRIDE; |
45 virtual ExtensionDevToolsManager* GetExtensionDevToolsManager() OVERRIDE; | |
46 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; | 46 virtual ExtensionProcessManager* GetExtensionProcessManager() OVERRIDE; |
47 virtual ExtensionMessageService* GetExtensionMessageService() OVERRIDE; | |
48 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; | 47 virtual ExtensionEventRouter* GetExtensionEventRouter() OVERRIDE; |
49 virtual ExtensionSpecialStoragePolicy* | 48 virtual ExtensionSpecialStoragePolicy* |
50 GetExtensionSpecialStoragePolicy() OVERRIDE; | 49 GetExtensionSpecialStoragePolicy() OVERRIDE; |
51 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; | 50 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; |
52 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; | 51 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; |
53 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; | 52 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; |
54 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; | 53 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; |
55 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; | 54 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; |
56 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; | 55 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; |
57 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; | 56 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; |
(...skipping 10 matching lines...) Expand all Loading... |
68 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; | 67 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; |
69 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; | 68 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; |
70 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; | 69 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; |
71 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; | 70 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; |
72 virtual TokenService* GetTokenService() OVERRIDE; | 71 virtual TokenService* GetTokenService() OVERRIDE; |
73 virtual bool IsSameProfile(Profile* profile) OVERRIDE; | 72 virtual bool IsSameProfile(Profile* profile) OVERRIDE; |
74 virtual Time GetStartTime() const OVERRIDE; | 73 virtual Time GetStartTime() const OVERRIDE; |
75 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; | 74 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; |
76 virtual history::TopSites* GetTopSites() OVERRIDE; | 75 virtual history::TopSites* GetTopSites() OVERRIDE; |
77 virtual void MarkAsCleanShutdown() OVERRIDE; | 76 virtual void MarkAsCleanShutdown() OVERRIDE; |
78 virtual void InitExtensions(bool extensions_enabled) OVERRIDE; | |
79 virtual void InitPromoResources() OVERRIDE; | 77 virtual void InitPromoResources() OVERRIDE; |
80 virtual void InitRegisteredProtocolHandlers() OVERRIDE; | 78 virtual void InitRegisteredProtocolHandlers() OVERRIDE; |
81 virtual FilePath last_selected_directory() OVERRIDE; | 79 virtual FilePath last_selected_directory() OVERRIDE; |
82 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; | 80 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; |
83 | 81 |
84 #if defined(OS_CHROMEOS) | 82 #if defined(OS_CHROMEOS) |
85 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; | 83 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; |
86 virtual void InitChromeOSPreferences() OVERRIDE; | 84 virtual void InitChromeOSPreferences() OVERRIDE; |
87 #endif // defined(OS_CHROMEOS) | 85 #endif // defined(OS_CHROMEOS) |
88 | 86 |
89 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE; | 87 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE; |
90 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE; | 88 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE; |
91 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE; | |
92 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; | 89 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; |
93 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; | 90 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; |
94 | 91 |
95 #if defined(OS_CHROMEOS) | 92 #if defined(OS_CHROMEOS) |
96 virtual void ChangeAppLocale(const std::string& locale, | 93 virtual void ChangeAppLocale(const std::string& locale, |
97 AppLocaleChangedVia) OVERRIDE; | 94 AppLocaleChangedVia) OVERRIDE; |
98 virtual void OnLogin() OVERRIDE; | 95 virtual void OnLogin() OVERRIDE; |
99 #endif // defined(OS_CHROMEOS) | 96 #endif // defined(OS_CHROMEOS) |
100 | 97 |
101 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; | 98 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; |
(...skipping 27 matching lines...) Expand all Loading... |
129 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
130 | 127 |
131 // The real underlying profile. | 128 // The real underlying profile. |
132 Profile* profile_; | 129 Profile* profile_; |
133 | 130 |
134 // Weak pointer owned by |profile_|. | 131 // Weak pointer owned by |profile_|. |
135 PrefService* prefs_; | 132 PrefService* prefs_; |
136 | 133 |
137 OffTheRecordProfileIOData::Handle io_data_; | 134 OffTheRecordProfileIOData::Handle io_data_; |
138 | 135 |
139 // Must be freed before |io_data_|. While |extension_process_manager_| still | |
140 // lives, we handle incoming resource requests from extension processes and | |
141 // those require access to the ResourceContext owned by |io_data_|. | |
142 scoped_ptr<ExtensionProcessManager> extension_process_manager_; | |
143 | |
144 // We use a non-persistent content settings map for OTR. | 136 // We use a non-persistent content settings map for OTR. |
145 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; | 137 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; |
146 | 138 |
147 // Use a separate zoom map for OTR. | 139 // Use a separate zoom map for OTR. |
148 scoped_refptr<content::HostZoomMap> host_zoom_map_; | 140 scoped_refptr<content::HostZoomMap> host_zoom_map_; |
149 | 141 |
150 // Time we were started. | 142 // Time we were started. |
151 Time start_time_; | 143 Time start_time_; |
152 | 144 |
153 FilePath last_selected_directory_; | 145 FilePath last_selected_directory_; |
154 | 146 |
155 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 147 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
156 | 148 |
157 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 149 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
158 | 150 |
159 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); | 151 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); |
160 }; | 152 }; |
161 | 153 |
162 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ | 154 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ |
OLD | NEW |