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

Side by Side Diff: content/public/browser/browser_context.h

Issue 10836305: Ensure that isolated apps use the right cookies for media requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge conflict. Created 8 years, 4 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
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/hash_tables.h" 9 #include "base/hash_tables.h"
10 #include "base/supports_user_data.h" 10 #include "base/supports_user_data.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Returns the path of the directory where this context's data is stored. 95 // Returns the path of the directory where this context's data is stored.
96 virtual FilePath GetPath() = 0; 96 virtual FilePath GetPath() = 0;
97 97
98 // Return whether this context is incognito. Default is false. 98 // Return whether this context is incognito. Default is false.
99 // This doesn't belong here; http://crbug.com/89628 99 // This doesn't belong here; http://crbug.com/89628
100 virtual bool IsOffTheRecord() const = 0; 100 virtual bool IsOffTheRecord() const = 0;
101 101
102 // Returns the request context information associated with this context. Call 102 // Returns the request context information associated with this context. Call
103 // this only on the UI thread, since it can send notifications that should 103 // this only on the UI thread, since it can send notifications that should
104 // happen on the UI thread. 104 // happen on the UI thread.
105 // TODO(creis): Remove this version in favor of the one below.
105 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 106 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
106 107
107 // Returns the request context appropriate for the given renderer. If the 108 // Returns the request context appropriate for the given renderer. If the
108 // renderer process doesn't have an associated installed app, or if the 109 // renderer process doesn't have an associated installed app, or if the
109 // installed app's is_storage_isolated() returns false, this is equivalent to 110 // installed app's is_storage_isolated() returns false, this is equivalent to
110 // calling GetRequestContext(). 111 // calling GetRequestContext().
111 // TODO(creis): After isolated app storage is no longer an experimental
112 // feature, consider making this the default contract for GetRequestContext.
113 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 112 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
114 int renderer_child_id) = 0; 113 int renderer_child_id) = 0;
115 114
115 // Returns the default request context for media resources associated with
116 // this context.
117 // TODO(creis): Remove this version in favor of the one below.
118 virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0;
119
116 // Returns the request context for media resources associated with this 120 // Returns the request context for media resources associated with this
117 // context. 121 // context and renderer process.
118 virtual net::URLRequestContextGetter* GetRequestContextForMedia() = 0; 122 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
123 int renderer_child_id) = 0;
119 124
120 // Returns the resource context. 125 // Returns the resource context.
121 virtual ResourceContext* GetResourceContext() = 0; 126 virtual ResourceContext* GetResourceContext() = 0;
122 127
123 // Returns the DownloadManagerDelegate for this context. This will be called 128 // Returns the DownloadManagerDelegate for this context. This will be called
124 // once per context. The embedder owns the delegate and is responsible for 129 // once per context. The embedder owns the delegate and is responsible for
125 // ensuring that it outlives DownloadManager. It's valid to return NULL. 130 // ensuring that it outlives DownloadManager. It's valid to return NULL.
126 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() = 0; 131 virtual DownloadManagerDelegate* GetDownloadManagerDelegate() = 0;
127 132
128 // Returns the geolocation permission context for this context. It's valid to 133 // Returns the geolocation permission context for this context. It's valid to
(...skipping 22 matching lines...) Expand all
151 struct hash<content::BrowserContext*> { 156 struct hash<content::BrowserContext*> {
152 std::size_t operator()(content::BrowserContext* const& p) const { 157 std::size_t operator()(content::BrowserContext* const& p) const {
153 return reinterpret_cast<std::size_t>(p); 158 return reinterpret_cast<std::size_t>(p);
154 } 159 }
155 }; 160 };
156 161
157 } // namespace BASE_HASH_NAMESPACE 162 } // namespace BASE_HASH_NAMESPACE
158 #endif 163 #endif
159 164
160 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 165 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW
« no previous file with comments | « content/browser/resource_context_impl.cc ('k') | content/public/test/test_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698