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

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: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual PersonalDataManager* GetPersonalDataManager(); 74 virtual PersonalDataManager* GetPersonalDataManager();
75 virtual fileapi::SandboxedFileSystemContext* GetFileSystemContext(); 75 virtual fileapi::SandboxedFileSystemContext* GetFileSystemContext();
76 virtual void InitThemes(); 76 virtual void InitThemes();
77 virtual void SetTheme(const Extension* extension); 77 virtual void SetTheme(const Extension* extension);
78 virtual void SetNativeTheme(); 78 virtual void SetNativeTheme();
79 virtual void ClearTheme(); 79 virtual void ClearTheme();
80 virtual const Extension* GetTheme(); 80 virtual const Extension* GetTheme();
81 virtual BrowserThemeProvider* GetThemeProvider(); 81 virtual BrowserThemeProvider* GetThemeProvider();
82 virtual bool HasCreatedDownloadManager() const; 82 virtual bool HasCreatedDownloadManager() const;
83 virtual URLRequestContextGetter* GetRequestContext(); 83 virtual URLRequestContextGetter* GetRequestContext();
84 virtual URLRequestContextGetter* GetRequestContext(const Extension* app);
84 virtual URLRequestContextGetter* GetRequestContextForMedia(); 85 virtual URLRequestContextGetter* GetRequestContextForMedia();
85 virtual URLRequestContextGetter* GetRequestContextForExtensions(); 86 virtual URLRequestContextGetter* GetRequestContextForExtensions();
87 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
88 const Extension* installed_app);
86 virtual void RegisterExtensionWithRequestContexts(const Extension* extension); 89 virtual void RegisterExtensionWithRequestContexts(const Extension* extension);
87 virtual void UnregisterExtensionWithRequestContexts( 90 virtual void UnregisterExtensionWithRequestContexts(
88 const Extension* extension); 91 const Extension* extension);
89 virtual net::SSLConfigService* GetSSLConfigService(); 92 virtual net::SSLConfigService* GetSSLConfigService();
90 virtual HostContentSettingsMap* GetHostContentSettingsMap(); 93 virtual HostContentSettingsMap* GetHostContentSettingsMap();
91 virtual HostZoomMap* GetHostZoomMap(); 94 virtual HostZoomMap* GetHostZoomMap();
92 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap(); 95 virtual GeolocationContentSettingsMap* GetGeolocationContentSettingsMap();
93 virtual GeolocationPermissionContext* GetGeolocationPermissionContext(); 96 virtual GeolocationPermissionContext* GetGeolocationPermissionContext();
94 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher(); 97 virtual UserStyleSheetWatcher* GetUserStyleSheetWatcher();
95 virtual FindBarState* GetFindBarState(); 98 virtual FindBarState* GetFindBarState();
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 scoped_ptr<ProfileSyncFactory> profile_sync_factory_; 207 scoped_ptr<ProfileSyncFactory> profile_sync_factory_;
205 scoped_ptr<ProfileSyncService> sync_service_; 208 scoped_ptr<ProfileSyncService> sync_service_;
206 scoped_refptr<CloudPrintProxyService> cloud_print_proxy_service_; 209 scoped_refptr<CloudPrintProxyService> cloud_print_proxy_service_;
207 210
208 scoped_refptr<ChromeURLRequestContextGetter> request_context_; 211 scoped_refptr<ChromeURLRequestContextGetter> request_context_;
209 212
210 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_; 213 scoped_refptr<ChromeURLRequestContextGetter> media_request_context_;
211 214
212 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_; 215 scoped_refptr<ChromeURLRequestContextGetter> extensions_request_context_;
213 216
217 // A map of request contexts, one per requested app ID.
218 typedef base::hash_map<std::string,
219 scoped_refptr<ChromeURLRequestContextGetter> >
220 ChromeURLRequestContextGetterMap;
221 ChromeURLRequestContextGetterMap app_request_context_map_;
222
214 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_; 223 scoped_ptr<SSLConfigServiceManager> ssl_config_service_manager_;
215 224
216 scoped_refptr<HostContentSettingsMap> host_content_settings_map_; 225 scoped_refptr<HostContentSettingsMap> host_content_settings_map_;
217 scoped_refptr<HostZoomMap> host_zoom_map_; 226 scoped_refptr<HostZoomMap> host_zoom_map_;
218 scoped_refptr<GeolocationContentSettingsMap> 227 scoped_refptr<GeolocationContentSettingsMap>
219 geolocation_content_settings_map_; 228 geolocation_content_settings_map_;
220 scoped_refptr<GeolocationPermissionContext> 229 scoped_refptr<GeolocationPermissionContext>
221 geolocation_permission_context_; 230 geolocation_permission_context_;
222 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_; 231 scoped_refptr<UserStyleSheetWatcher> user_style_sheet_watcher_;
223 scoped_ptr<FindBarState> find_bar_state_; 232 scoped_ptr<FindBarState> find_bar_state_;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 #endif 306 #endif
298 307
299 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_; 308 scoped_refptr<PrefProxyConfigTracker> pref_proxy_config_tracker_;
300 309
301 scoped_ptr<PrerenderManager> prerender_manager_; 310 scoped_ptr<PrerenderManager> prerender_manager_;
302 311
303 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 312 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
304 }; 313 };
305 314
306 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_ 315 #endif // CHROME_BROWSER_PROFILES_PROFILE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698