OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This class gathers state related to a single user profile. | 5 // This class gathers state related to a single user profile. |
6 | 6 |
7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 8 #define CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual PersonalDataManager* GetPersonalDataManager(); | 79 virtual PersonalDataManager* GetPersonalDataManager(); |
80 virtual fileapi::FileSystemContext* GetFileSystemContext(); | 80 virtual fileapi::FileSystemContext* GetFileSystemContext(); |
81 virtual void InitThemes(); | 81 virtual void InitThemes(); |
82 virtual void SetTheme(const Extension* extension); | 82 virtual void SetTheme(const Extension* extension); |
83 virtual void SetNativeTheme(); | 83 virtual void SetNativeTheme(); |
84 virtual void ClearTheme(); | 84 virtual void ClearTheme(); |
85 virtual const Extension* GetTheme(); | 85 virtual const Extension* GetTheme(); |
86 virtual BrowserThemeProvider* GetThemeProvider(); | 86 virtual BrowserThemeProvider* GetThemeProvider(); |
87 virtual bool HasCreatedDownloadManager() const; | 87 virtual bool HasCreatedDownloadManager() const; |
88 virtual URLRequestContextGetter* GetRequestContext(); | 88 virtual URLRequestContextGetter* GetRequestContext(); |
| 89 virtual URLRequestContextGetter* GetRequestContextForPossibleApp( |
| 90 const Extension* app); |
89 virtual URLRequestContextGetter* GetRequestContextForMedia(); | 91 virtual URLRequestContextGetter* GetRequestContextForMedia(); |
90 virtual URLRequestContextGetter* GetRequestContextForExtensions(); | 92 virtual URLRequestContextGetter* GetRequestContextForExtensions(); |
| 93 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| 94 const Extension* installed_app); |
91 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); | 95 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); |
92 virtual void UnregisterExtensionWithRequestContexts( | 96 virtual void UnregisterExtensionWithRequestContexts( |
93 const Extension* extension); | 97 const Extension* extension); |
94 virtual net::SSLConfigService* GetSSLConfigService(); | 98 virtual net::SSLConfigService* GetSSLConfigService(); |
95 virtual HostContentSettingsMap* GetHostContentSettingsMap(); | 99 virtual HostContentSettingsMap* GetHostContentSettingsMap(); |
96 virtual HostZoomMap* GetHostZoomMap(); | 100 virtual HostZoomMap* GetHostZoomMap(); |
97 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); | 101 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); |
98 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); | 102 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); |
99 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); | 103 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); |
100 virtual FindBarState* GetFindBarState(); | 104 virtual FindBarState* GetFindBarState(); |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 176 |
173 void EnsureSessionServiceCreated() { | 177 void EnsureSessionServiceCreated() { |
174 GetSessionService(); | 178 GetSessionService(); |
175 } | 179 } |
176 | 180 |
177 void RegisterComponentExtensions(); | 181 void RegisterComponentExtensions(); |
178 void InstallDefaultApps(); | 182 void InstallDefaultApps(); |
179 | 183 |
180 ExtensionPrefValueMap* GetExtensionPrefValueMap(); | 184 ExtensionPrefValueMap* GetExtensionPrefValueMap(); |
181 | 185 |
| 186 static void CreateIsolatedAppPaths(const FilePath& app_path, |
| 187 const FilePath& cache_path); |
| 188 |
182 NotificationRegistrar registrar_; | 189 NotificationRegistrar registrar_; |
183 PrefChangeRegistrar pref_change_registrar_; | 190 PrefChangeRegistrar pref_change_registrar_; |
184 | 191 |
185 FilePath path_; | 192 FilePath path_; |
186 FilePath base_cache_path_; | 193 FilePath base_cache_path_; |
187 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; | 194 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; |
188 // Keep prefs_ on top for destruction order because extension_prefs_, | 195 // Keep prefs_ on top for destruction order because extension_prefs_, |
189 // net_pref_observer_, web_resource_service_ and background_contents_service_ | 196 // net_pref_observer_, web_resource_service_ and background_contents_service_ |
190 // store pointers to prefs_ and shall be destructed first. | 197 // store pointers to prefs_ and shall be destructed first. |
191 scoped_ptr<PrefService> prefs_; | 198 scoped_ptr<PrefService> prefs_; |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
313 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; | 320 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; |
314 | 321 |
315 scoped_refptr<prerender::PrerenderManager> prerender_manager_; | 322 scoped_refptr<prerender::PrerenderManager> prerender_manager_; |
316 | 323 |
317 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; | 324 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; |
318 | 325 |
319 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); | 326 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); |
320 }; | 327 }; |
321 | 328 |
322 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ | 329 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ |
OLD | NEW |