Chromium Code Reviews| Index: chrome/browser/profiles/profile.h |
| diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h |
| index db2f26637fba05cdce9b2bdd877b65c9b163c506..6597a32e9a412947a5ab7beaf10d9020992fc007 100644 |
| --- a/chrome/browser/profiles/profile.h |
| +++ b/chrome/browser/profiles/profile.h |
| @@ -330,6 +330,11 @@ class Profile { |
| // happen on the UI thread. |
| virtual URLRequestContextGetter* GetRequestContext() = 0; |
| + // Returns the request context appropriate for the given app. If app is null |
| + // or app->is_storage_isolated() returns false, this is equivalent to calling |
| + // GetRequestContext(). |
| + virtual URLRequestContextGetter* GetRequestContext(const Extension* app) = 0; |
|
willchan no longer on Chromium
2011/01/26 23:21:52
http://www.corp.google.com/eng/doc/cppguide.xml#Fu
Charlie Reis
2011/03/01 21:33:11
I've renamed it to GetRequestContextForPossibleApp
|
| + |
| // Returns the request context for media resources asociated with this |
| // profile. |
| virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
| @@ -338,6 +343,11 @@ class Profile { |
| // is only used for a separate cookie store currently. |
| virtual URLRequestContextGetter* GetRequestContextForExtensions() = 0; |
| + // Returns the request context used within an installed app that has |
| + // requested isolated storage. |
| + virtual URLRequestContextGetter* GetRequestContextForIsolatedApp( |
| + const Extension* installed_app) = 0; |
| + |
| // Called by the ExtensionService that lives in this profile. Gives the |
| // profile a chance to react to the load event before the EXTENSION_LOADED |
| // notification has fired. The purpose for handling this event first is to |