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

Side by Side Diff: chrome/browser/profiles/profile.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_H_ 7 #ifndef CHROME_BROWSER_PROFILES_PROFILE_H_
8 #define CHROME_BROWSER_PROFILES_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILES_PROFILE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 virtual const Extension* GetTheme() = 0; 324 virtual const Extension* GetTheme() = 0;
325 325
326 // Returns or creates the ThemeProvider associated with this profile 326 // Returns or creates the ThemeProvider associated with this profile
327 virtual BrowserThemeProvider* GetThemeProvider() = 0; 327 virtual BrowserThemeProvider* GetThemeProvider() = 0;
328 328
329 // Returns the request context information associated with this profile. Call 329 // Returns the request context information associated with this profile. Call
330 // this only on the UI thread, since it can send notifications that should 330 // this only on the UI thread, since it can send notifications that should
331 // happen on the UI thread. 331 // happen on the UI thread.
332 virtual URLRequestContextGetter* GetRequestContext() = 0; 332 virtual URLRequestContextGetter* GetRequestContext() = 0;
333 333
334 // Returns the request context appropriate for the given app. If app is null
335 // or app->is_storage_isolated() returns false, this is equivalent to calling
336 // GetRequestContext().
337 virtual URLRequestContextGetter* GetRequestContext(const Extension* app) = 0;
338
334 // Returns the request context for media resources asociated with this 339 // Returns the request context for media resources asociated with this
335 // profile. 340 // profile.
336 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; 341 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0;
337 342
338 // Returns the request context used for extension-related requests. This 343 // Returns the request context used for extension-related requests. This
339 // is only used for a separate cookie store currently. 344 // is only used for a separate cookie store currently.
340 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; 345 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0;
341 346
347 // Returns the request context used within an installed app that has
348 // requested isolated storage.
349 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
350 const Extension* installed_app) = 0;
351
342 // Called by the ExtensionService that lives in this profile. Gives the 352 // Called by the ExtensionService that lives in this profile. Gives the
343 // profile a chance to react to the load event before the EXTENSION_LOADED 353 // profile a chance to react to the load event before the EXTENSION_LOADED
344 // notification has fired. The purpose for handling this event first is to 354 // notification has fired. The purpose for handling this event first is to
345 // avoid race conditions by making sure URLRequestContexts learn about new 355 // avoid race conditions by making sure URLRequestContexts learn about new
346 // extensions before anything else needs them to know. 356 // extensions before anything else needs them to know.
347 virtual void RegisterExtensionWithRequestContexts( 357 virtual void RegisterExtensionWithRequestContexts(
348 const Extension* extension) {} 358 const Extension* extension) {}
349 359
350 // Called by the ExtensionService that lives in this profile. Lets the 360 // Called by the ExtensionService that lives in this profile. Lets the
351 // profile clean up its RequestContexts once all the listeners to the 361 // profile clean up its RequestContexts once all the listeners to the
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 bool restored_last_session_; 559 bool restored_last_session_;
550 560
551 // Accessibility events will only be propagated when the pause 561 // Accessibility events will only be propagated when the pause
552 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 562 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
553 // increment and decrement the level, respectively, rather than set it to 563 // increment and decrement the level, respectively, rather than set it to
554 // true or false, so that calls can be nested. 564 // true or false, so that calls can be nested.
555 int accessibility_pause_level_; 565 int accessibility_pause_level_;
556 }; 566 };
557 567
558 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 568 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698