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

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: 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_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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 virtual const Extension* GetTheme() = 0; 340 virtual const Extension* GetTheme() = 0;
341 341
342 // Returns or creates the ThemeProvider associated with this profile 342 // Returns or creates the ThemeProvider associated with this profile
343 virtual BrowserThemeProvider* GetThemeProvider() = 0; 343 virtual BrowserThemeProvider* GetThemeProvider() = 0;
344 344
345 // Returns the request context information associated with this profile. Call 345 // Returns the request context information associated with this profile. Call
346 // this only on the UI thread, since it can send notifications that should 346 // this only on the UI thread, since it can send notifications that should
347 // happen on the UI thread. 347 // happen on the UI thread.
348 virtual URLRequestContextGetter* GetRequestContext() = 0; 348 virtual URLRequestContextGetter* GetRequestContext() = 0;
349 349
350 // Returns the request context appropriate for the given app. If installed_app
351 // is null or installed_app->is_storage_isolated() returns false, this is
352 // equivalent to calling GetRequestContext().
353 virtual URLRequestContextGetter* GetRequestContextForPossibleApp(
354 const Extension* installed_app) = 0;
355
350 // Returns the request context for media resources asociated with this 356 // Returns the request context for media resources asociated with this
351 // profile. 357 // profile.
352 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; 358 virtual URLRequestContextGetter* GetRequestContextForMedia() = 0;
353 359
354 // Returns the request context used for extension-related requests. This 360 // Returns the request context used for extension-related requests. This
355 // is only used for a separate cookie store currently. 361 // is only used for a separate cookie store currently.
356 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; 362 virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0;
357 363
364 // Returns the request context used within an installed app that has
365 // requested isolated storage.
366 virtual URLRequestContextGetter* GetRequestContextForIsolatedApp(
367 const Extension* installed_app) = 0;
368
358 // Called by the ExtensionService that lives in this profile. Gives the 369 // Called by the ExtensionService that lives in this profile. Gives the
359 // profile a chance to react to the load event before the EXTENSION_LOADED 370 // profile a chance to react to the load event before the EXTENSION_LOADED
360 // notification has fired. The purpose for handling this event first is to 371 // notification has fired. The purpose for handling this event first is to
361 // avoid race conditions by making sure URLRequestContexts learn about new 372 // avoid race conditions by making sure URLRequestContexts learn about new
362 // extensions before anything else needs them to know. 373 // extensions before anything else needs them to know.
363 virtual void RegisterExtensionWithRequestContexts( 374 virtual void RegisterExtensionWithRequestContexts(
364 const Extension* extension) {} 375 const Extension* extension) {}
365 376
366 // Called by the ExtensionService that lives in this profile. Lets the 377 // Called by the ExtensionService that lives in this profile. Lets the
367 // profile clean up its RequestContexts once all the listeners to the 378 // profile clean up its RequestContexts once all the listeners to the
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 bool restored_last_session_; 609 bool restored_last_session_;
599 610
600 // Accessibility events will only be propagated when the pause 611 // Accessibility events will only be propagated when the pause
601 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 612 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
602 // increment and decrement the level, respectively, rather than set it to 613 // increment and decrement the level, respectively, rather than set it to
603 // true or false, so that calls can be nested. 614 // true or false, so that calls can be nested.
604 int accessibility_pause_level_; 615 int accessibility_pause_level_;
605 }; 616 };
606 617
607 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_ 618 #endif // CHROME_BROWSER_PROFILES_PROFILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698