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

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 187223003: Allow content layer to pass ProtocolInterceptors when we create URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 #include "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "url/gurl.h" 9 #include "url/gurl.h"
10 10
(...skipping 20 matching lines...) Expand all
31 return url; 31 return url;
32 } 32 }
33 33
34 bool ContentBrowserClient::ShouldUseProcessPerSite( 34 bool ContentBrowserClient::ShouldUseProcessPerSite(
35 BrowserContext* browser_context, const GURL& effective_url) { 35 BrowserContext* browser_context, const GURL& effective_url) {
36 return false; 36 return false;
37 } 37 }
38 38
39 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( 39 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext(
40 BrowserContext* browser_context, 40 BrowserContext* browser_context,
41 ProtocolHandlerMap* protocol_handlers) { 41 ProtocolHandlerMap* protocol_handlers,
42 ProtocolHandlerScopedVector protocol_interceptors) {
42 return NULL; 43 return NULL;
43 } 44 }
44 45
45 net::URLRequestContextGetter* 46 net::URLRequestContextGetter*
46 ContentBrowserClient::CreateRequestContextForStoragePartition( 47 ContentBrowserClient::CreateRequestContextForStoragePartition(
47 BrowserContext* browser_context, 48 BrowserContext* browser_context,
48 const base::FilePath& partition_path, 49 const base::FilePath& partition_path,
49 bool in_memory, 50 bool in_memory,
50 ProtocolHandlerMap* protocol_handlers) { 51 ProtocolHandlerMap* protocol_handlers,
52 ProtocolHandlerScopedVector protocol_interceptors) {
51 return NULL; 53 return NULL;
52 } 54 }
53 55
54 bool ContentBrowserClient::IsHandledURL(const GURL& url) { 56 bool ContentBrowserClient::IsHandledURL(const GURL& url) {
55 return false; 57 return false;
56 } 58 }
57 59
58 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host, 60 bool ContentBrowserClient::CanCommitURL(RenderProcessHost* process_host,
59 const GURL& site_url) { 61 const GURL& site_url) {
60 return true; 62 return true;
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 content::BrowserContext* browser_context, 304 content::BrowserContext* browser_context,
303 const GURL& url) { 305 const GURL& url) {
304 return false; 306 return false;
305 } 307 }
306 308
307 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { 309 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() {
308 return false; 310 return false;
309 } 311 }
310 312
311 } // namespace content 313 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698