summaryrefslogtreecommitdiffstats
path: root/content/public/browser
diff options
context:
space:
mode:
authorcreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 19:07:08 +0000
committercreis@chromium.org <creis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 19:07:08 +0000
commit10705a7b86405ba171f4b4237e43f70757b00441 (patch)
tree4ba50ed0f81684cd33d916dec0cd2da3eecf67e6 /content/public/browser
parentf84278cd1a26aff14aff8d169b68b1edee950591 (diff)
downloadchromium_src-10705a7b86405ba171f4b4237e43f70757b00441.zip
chromium_src-10705a7b86405ba171f4b4237e43f70757b00441.tar.gz
chromium_src-10705a7b86405ba171f4b4237e43f70757b00441.tar.bz2
Ensure that isolated apps use the right cookies for media requests.
Also abstract out the media URLRequestContext logic from ProfileImpl. BUG=141172 TEST=Check cookies attached to video tag request inside an isolated app. Review URL: https://chromiumcodereview.appspot.com/10836305 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152604 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/public/browser')
-rw-r--r--content/public/browser/browser_context.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/content/public/browser/browser_context.h b/content/public/browser/browser_context.h
index 2acf400..53daea5 100644
--- a/content/public/browser/browser_context.h
+++ b/content/public/browser/browser_context.h
@@ -102,20 +102,25 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
// Returns the request context information associated with this context. Call
// this only on the UI thread, since it can send notifications that should
// happen on the UI thread.
+ // TODO(creis): Remove this version in favor of the one below.
virtual net::URLRequestContextGetter* GetRequestContext() = 0;
// Returns the request context appropriate for the given renderer. If the
// renderer process doesn't have an associated installed app, or if the
// installed app's 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 net::URLRequestContextGetter* GetRequestContextForRenderProcess(
int renderer_child_id) = 0;
+ // Returns the default request context for media resources associated with
+ // this context.
+ // TODO(creis): Remove this version in favor of the one below.
+ virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0;
+
// Returns the request context for media resources associated with this
- // context.
- virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0;
+ // context and renderer process.
+ virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
+ int renderer_child_id) = 0;
// Returns the resource context.
virtual ResourceContext* GetResourceContext() = 0;