Chromium Code Reviews| Index: chrome/browser/profiles/profile.h |
| diff --git a/chrome/browser/profiles/profile.h b/chrome/browser/profiles/profile.h |
| index 15d3b09f0d07e015d19de7d058fa11ffe041e1b6..8f616a3aefcdfc47f0b560475b41a4bbcf75a0f4 100644 |
| --- a/chrome/browser/profiles/profile.h |
| +++ b/chrome/browser/profiles/profile.h |
| @@ -346,6 +346,14 @@ class Profile { |
| // happen on the UI thread. |
| virtual URLRequestContextGetter* GetRequestContext() = 0; |
| + // Returns the request context appropriate for the given app. If installed_app |
| + // is null or installed_app->is_storage_isolated() returns false, this is |
| + // equivalent to calling GetRequestContext(). |
| + // TODO(creis): After isolated app storage is no longer an experimental |
| + // feature, consider making this the default contract for GetRequestContext. |
| + virtual URLRequestContextGetter* GetRequestContextForPossibleApp( |
| + const Extension* installed_app) = 0; |
| + |
| // Returns the request context for media resources asociated with this |
| // profile. |
| virtual URLRequestContextGetter* GetRequestContextForMedia() = 0; |
| @@ -354,6 +362,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( |
| + std::string app_id) = 0; |
|
Matt Perry
2011/03/15 00:40:56
const std::string&
Charlie Reis
2011/03/15 06:23:42
Done.
|
| + |
| // 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 |