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

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

Issue 11308362: Add StoragePartition's ProtocolHandlers at URLRequestContext construction time. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync (r179907) Created 7 years, 10 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) 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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 // TODO(creis): Remove this version in favor of the one below. 106 // TODO(creis): Remove this version in favor of the one below.
107 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 107 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
108 108
109 // Returns the request context appropriate for the given renderer. If the 109 // Returns the request context appropriate for the given renderer. If the
110 // renderer process doesn't have an associated installed app, or if the 110 // renderer process doesn't have an associated installed app, or if the
111 // installed app's is_storage_isolated() returns false, this is equivalent to 111 // installed app's is_storage_isolated() returns false, this is equivalent to
112 // calling GetRequestContext(). 112 // calling GetRequestContext().
113 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 113 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
114 int renderer_child_id) = 0; 114 int renderer_child_id) = 0;
115 115
116 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition(
117 const FilePath& partition_path,
118 bool in_memory) = 0;
119
120 // Returns the default request context for media resources associated with 116 // Returns the default request context for media resources associated with
121 // this context. 117 // this context.
122 // TODO(creis): Remove this version in favor of the one below. 118 // TODO(creis): Remove this version in favor of the one below.
123 virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0; 119 virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0;
124 120
125 // Returns the request context for media resources associated with this 121 // Returns the request context for media resources associated with this
126 // context and renderer process. 122 // context and renderer process.
127 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 123 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
128 int renderer_child_id) = 0; 124 int renderer_child_id) = 0;
129 virtual net::URLRequestContextGetter* 125 virtual net::URLRequestContextGetter*
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 struct hash<content::BrowserContext*> { 157 struct hash<content::BrowserContext*> {
162 std::size_t operator()(content::BrowserContext* const& p) const { 158 std::size_t operator()(content::BrowserContext* const& p) const {
163 return reinterpret_cast<std::size_t>(p); 159 return reinterpret_cast<std::size_t>(p);
164 } 160 }
165 }; 161 };
166 162
167 } // namespace BASE_HASH_NAMESPACE 163 } // namespace BASE_HASH_NAMESPACE
168 #endif 164 #endif
169 165
170 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 166 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698