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

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

Issue 6201005: Initial support for partitioning cookies for isolated apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add ChromeURLRequestContext::Copy. Created 9 years, 9 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) 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 virtual PersonalDataManager* GetPersonalDataManager(); 78 virtual PersonalDataManager* GetPersonalDataManager();
79 virtual fileapi::FileSystemContext* GetFileSystemContext(); 79 virtual fileapi::FileSystemContext* GetFileSystemContext();
80 virtual void InitThemes(); 80 virtual void InitThemes();
81 virtual void SetTheme(const Extension* extension); 81 virtual void SetTheme(const Extension* extension);
82 virtual void SetNativeTheme(); 82 virtual void SetNativeTheme();
83 virtual void ClearTheme(); 83 virtual void ClearTheme();
84 virtual const Extension* GetTheme(); 84 virtual const Extension* GetTheme();
85 virtual BrowserThemeProvider* GetThemeProvider(); 85 virtual BrowserThemeProvider* GetThemeProvider();
86 virtual bool HasCreatedDownloadManager() const; 86 virtual bool HasCreatedDownloadManager() const;
87 virtual URLRequestContextGetter* GetRequestContext(); 87 virtual URLRequestContextGetter* GetRequestContext();
88 virtual URLRequestContextGetter* GetRequestContextForPossibleApp(
89 const Extension* installed_app);
88 virtual URLRequestContextGetter* GetRequestContextForMedia(); 90 virtual URLRequestContextGetter* GetRequestContextForMedia();
89 virtual URLRequestContextGetter* GetRequestContextForExtensions(); 91 virtual URLRequestContextGetter* GetRequestContextForExtensions();
92 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
93 const Extension* installed_app);
90 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); 94 virtual void RegisterExtensionWithRequestContexts(const Extension* extension);
91 virtual void UnregisterExtensionWithRequestContexts( 95 virtual void UnregisterExtensionWithRequestContexts(
92 const Extension* extension); 96 const Extension* extension);
93 virtual net::SSLConfigService* GetSSLConfigService(); 97 virtual net::SSLConfigService* GetSSLConfigService();
94 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 98 virtual HostContentSettingsMap* GetHostContentSettingsMap();
95 virtual HostZoomMap* GetHostZoomMap(); 99 virtual HostZoomMap* GetHostZoomMap();
96 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 100 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
97 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 101 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
98 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 102 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
99 virtual FindBarState* GetFindBarState(); 103 virtual FindBarState* GetFindBarState();
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 175
172 void EnsureSessionServiceCreated() { 176 void EnsureSessionServiceCreated() {
173 GetSessionService(); 177 GetSessionService();
174 } 178 }
175 179
176 void RegisterComponentExtensions(); 180 void RegisterComponentExtensions();
177 void InstallDefaultApps(); 181 void InstallDefaultApps();
178 182
179 ExtensionPrefValueMap* GetExtensionPrefValueMap(); 183 ExtensionPrefValueMap* GetExtensionPrefValueMap();
180 184
185 static void CreateIsolatedAppPaths(const FilePath& app_path,
186 const FilePath& cache_path);
187
181 NotificationRegistrar registrar_; 188 NotificationRegistrar registrar_;
182 PrefChangeRegistrar pref_change_registrar_; 189 PrefChangeRegistrar pref_change_registrar_;
183 190
184 FilePath path_; 191 FilePath path_;
185 FilePath base_cache_path_; 192 FilePath base_cache_path_;
186 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_; 193 scoped_ptr<ExtensionPrefValueMap> extension_pref_value_map_;
187 // Keep prefs_ on top for destruction order because extension_prefs_, 194 // Keep prefs_ on top for destruction order because extension_prefs_,
188 // net_pref_observer_, web_resource_service_ and background_contents_service_ 195 // net_pref_observer_, web_resource_service_ and background_contents_service_
189 // store pointers to prefs_ and shall be destructed first. 196 // store pointers to prefs_ and shall be destructed first.
190 scoped_ptr<PrefService> prefs_; 197 scoped_ptr<PrefService> prefs_;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 318 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
312 319
313 scoped_refptr<prerender::PrerenderManager> prerender_manager_; 320 scoped_refptr<prerender::PrerenderManager> prerender_manager_;
314 321
315 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_; 322 scoped_ptr<ChromeURLDataManager> chrome_url_data_manager_;
316 323
317 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 324 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
318 }; 325 };
319 326
320 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 327 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698