Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: chrome/browser/profiles/off_the_record_profile_impl.h

Issue 9959040: Reland 125805 - Reland 124817 - A profile-keyed service for Extensions, ExtensionSystem. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 LazyBackgroundTaskQueue* GetLazyBackgroundTaskQueue() OVERRIDE;
52 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE; 50 virtual GAIAInfoUpdateService* GetGAIAInfoUpdateService() OVERRIDE;
53 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE; 51 virtual HistoryService* GetHistoryService(ServiceAccessType sat) OVERRIDE;
54 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE; 52 virtual HistoryService* GetHistoryServiceWithoutCreating() OVERRIDE;
55 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE; 53 virtual FaviconService* GetFaviconService(ServiceAccessType sat) OVERRIDE;
56 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE; 54 virtual AutocompleteClassifier* GetAutocompleteClassifier() OVERRIDE;
57 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE; 55 virtual history::ShortcutsBackend* GetShortcutsBackend() OVERRIDE;
58 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE; 56 virtual WebDataService* GetWebDataService(ServiceAccessType sat) OVERRIDE;
59 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE; 57 virtual WebDataService* GetWebDataServiceWithoutCreating() OVERRIDE;
60 virtual PrefService* GetPrefs() OVERRIDE; 58 virtual PrefService* GetPrefs() OVERRIDE;
61 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE; 59 virtual PrefService* GetOffTheRecordPrefs() OVERRIDE;
62 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE; 60 virtual TemplateURLFetcher* GetTemplateURLFetcher() OVERRIDE;
63 virtual net::URLRequestContextGetter* 61 virtual net::URLRequestContextGetter*
64 GetRequestContextForExtensions() OVERRIDE; 62 GetRequestContextForExtensions() OVERRIDE;
65 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp( 63 virtual net::URLRequestContextGetter* GetRequestContextForIsolatedApp(
66 const std::string& app_id) OVERRIDE; 64 const std::string& app_id) OVERRIDE;
67 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE; 65 virtual net::SSLConfigService* GetSSLConfigService() OVERRIDE;
68 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE; 66 virtual HostContentSettingsMap* GetHostContentSettingsMap() OVERRIDE;
69 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE; 67 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher() OVERRIDE;
70 virtual BookmarkModel* GetBookmarkModel() OVERRIDE; 68 virtual BookmarkModel* GetBookmarkModel() OVERRIDE;
71 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE; 69 virtual ProtocolHandlerRegistry* GetProtocolHandlerRegistry() OVERRIDE;
72 virtual bool IsSameProfile(Profile* profile) OVERRIDE; 70 virtual bool IsSameProfile(Profile* profile) OVERRIDE;
73 virtual Time GetStartTime() const OVERRIDE; 71 virtual Time GetStartTime() const OVERRIDE;
74 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE; 72 virtual history::TopSites* GetTopSitesWithoutCreating() OVERRIDE;
75 virtual history::TopSites* GetTopSites() OVERRIDE; 73 virtual history::TopSites* GetTopSites() OVERRIDE;
76 virtual void MarkAsCleanShutdown() OVERRIDE; 74 virtual void MarkAsCleanShutdown() OVERRIDE;
77 virtual void InitExtensions(bool extensions_enabled) OVERRIDE;
78 virtual void InitPromoResources() OVERRIDE; 75 virtual void InitPromoResources() OVERRIDE;
79 virtual void InitRegisteredProtocolHandlers() OVERRIDE; 76 virtual void InitRegisteredProtocolHandlers() OVERRIDE;
80 virtual FilePath last_selected_directory() OVERRIDE; 77 virtual FilePath last_selected_directory() OVERRIDE;
81 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE; 78 virtual void set_last_selected_directory(const FilePath& path) OVERRIDE;
82 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE; 79 virtual bool WasCreatedByVersionOrLater(const std::string& version) OVERRIDE;
83 80
84 #if defined(OS_CHROMEOS) 81 #if defined(OS_CHROMEOS)
85 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE; 82 virtual void SetupChromeOSEnterpriseExtensionObserver() OVERRIDE;
86 virtual void InitChromeOSPreferences() OVERRIDE; 83 virtual void InitChromeOSPreferences() OVERRIDE;
87 #endif // defined(OS_CHROMEOS) 84 #endif // defined(OS_CHROMEOS)
88
89 virtual ExtensionInfoMap* GetExtensionInfoMap() OVERRIDE;
90 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE; 85 virtual ChromeURLDataManager* GetChromeURLDataManager() OVERRIDE;
91 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE; 86 virtual PromoCounter* GetInstantPromoCounter() OVERRIDE;
92 87
93 #if defined(OS_CHROMEOS) 88 #if defined(OS_CHROMEOS)
94 virtual void ChangeAppLocale(const std::string& locale, 89 virtual void ChangeAppLocale(const std::string& locale,
95 AppLocaleChangedVia) OVERRIDE; 90 AppLocaleChangedVia) OVERRIDE;
96 virtual void OnLogin() OVERRIDE; 91 virtual void OnLogin() OVERRIDE;
97 #endif // defined(OS_CHROMEOS) 92 #endif // defined(OS_CHROMEOS)
98 93
99 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE; 94 virtual PrefProxyConfigTracker* GetProxyConfigTracker() OVERRIDE;
(...skipping 30 matching lines...) Expand all
130 content::NotificationRegistrar registrar_; 125 content::NotificationRegistrar registrar_;
131 126
132 // The real underlying profile. 127 // The real underlying profile.
133 Profile* profile_; 128 Profile* profile_;
134 129
135 // Weak pointer owned by |profile_|. 130 // Weak pointer owned by |profile_|.
136 PrefService* prefs_; 131 PrefService* prefs_;
137 132
138 OffTheRecordProfileIOData::Handle io_data_; 133 OffTheRecordProfileIOData::Handle io_data_;
139 134
140 // Must be freed before |io_data_|. While |extension_process_manager_| still
141 // lives, we handle incoming resource requests from extension processes and
142 // those require access to the ResourceContext owned by |io_data_|.
143 scoped_ptr<ExtensionProcessManager> extension_process_manager_;
144
145 // We use a non-persistent content settings map for OTR. 135 // We use a non-persistent content settings map for OTR.
146 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 136 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
147 137
148 // Time we were started. 138 // Time we were started.
149 Time start_time_; 139 Time start_time_;
150 140
151 FilePath last_selected_directory_; 141 FilePath last_selected_directory_;
152 142
153 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 143 scoped_ptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
154 144
155 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 145 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
156 146
157 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl); 147 DISALLOW_COPY_AND_ASSIGN(OffTheRecordProfileImpl);
158 }; 148 };
159 149
160 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_ 150 #endif // CHROME_BROWSER_PROFILES_OFF_THE_RECORD_PROFILE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/prerender/prerender_manager_factory.cc ('k') | chrome/browser/profiles/off_the_record_profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698