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

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 (r175140) Created 7 years, 11 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // TODO(creis): Remove this version in favor of the one below. 97 // TODO(creis): Remove this version in favor of the one below.
98 virtual net::URLRequestContextGetter* GetRequestContext() = 0; 98 virtual net::URLRequestContextGetter* GetRequestContext() = 0;
99 99
100 // Returns the request context appropriate for the given renderer. If the 100 // Returns the request context appropriate for the given renderer. If the
101 // renderer process doesn't have an associated installed app, or if the 101 // renderer process doesn't have an associated installed app, or if the
102 // installed app's is_storage_isolated() returns false, this is equivalent to 102 // installed app's is_storage_isolated() returns false, this is equivalent to
103 // calling GetRequestContext(). 103 // calling GetRequestContext().
104 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess( 104 virtual net::URLRequestContextGetter* GetRequestContextForRenderProcess(
105 int renderer_child_id) = 0; 105 int renderer_child_id) = 0;
106 106
107 virtual net::URLRequestContextGetter* GetRequestContextForStoragePartition(
108 const FilePath& partition_path,
109 bool in_memory) = 0;
110
111 // Returns the default request context for media resources associated with 107 // Returns the default request context for media resources associated with
112 // this context. 108 // this context.
113 // TODO(creis): Remove this version in favor of the one below. 109 // TODO(creis): Remove this version in favor of the one below.
114 virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0; 110 virtual net::URLRequestContextGetter* GetMediaRequestContext() = 0;
115 111
116 // Returns the request context for media resources associated with this 112 // Returns the request context for media resources associated with this
117 // context and renderer process. 113 // context and renderer process.
118 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess( 114 virtual net::URLRequestContextGetter* GetMediaRequestContextForRenderProcess(
119 int renderer_child_id) = 0; 115 int renderer_child_id) = 0;
120 virtual net::URLRequestContextGetter* 116 virtual net::URLRequestContextGetter*
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 struct hash<content::BrowserContext*> { 148 struct hash<content::BrowserContext*> {
153 std::size_t operator()(content::BrowserContext* const& p) const { 149 std::size_t operator()(content::BrowserContext* const& p) const {
154 return reinterpret_cast<std::size_t>(p); 150 return reinterpret_cast<std::size_t>(p);
155 } 151 }
156 }; 152 };
157 153
158 } // namespace BASE_HASH_NAMESPACE 154 } // namespace BASE_HASH_NAMESPACE
159 #endif 155 #endif
160 156
161 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_ 157 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698