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

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

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 #include "content/public/browser/content_browser_client.h" 5 #include "content/public/browser/content_browser_client.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "googleurl/src/gurl.h" 8 #include "googleurl/src/gurl.h"
9 #include "ui/gfx/image/image_skia.h" 9 #include "ui/gfx/image/image_skia.h"
10 10
(...skipping 18 matching lines...) Expand all
29 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context, 29 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context,
30 const GURL& url) { 30 const GURL& url) {
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(
40 BrowserContext* browser_context,
41 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
42 blob_protocol_handler,
43 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
44 file_system_protocol_handler,
45 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
46 developer_protocol_handler,
47 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
48 chrome_protocol_handler,
49 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
50 chrome_devtools_protocol_handler) {
51 return NULL;
52 }
53
54 net::URLRequestContextGetter*
55 ContentBrowserClient::CreateRequestContextForStoragePartition(
56 BrowserContext* browser_context,
57 const FilePath& partition_path,
58 bool in_memory,
59 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
60 blob_protocol_handler,
61 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
62 file_system_protocol_handler,
63 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
64 developer_protocol_handler,
65 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
66 chrome_protocol_handler,
67 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler>
68 chrome_devtools_protocol_handler) {
69 return NULL;
70 }
71
39 bool ContentBrowserClient::IsHandledURL(const GURL& url) { 72 bool ContentBrowserClient::IsHandledURL(const GURL& url) {
40 return false; 73 return false;
41 } 74 }
42 75
43 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, 76 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host,
44 const GURL& site_url) { 77 const GURL& site_url) {
45 return true; 78 return true;
46 } 79 }
47 80
48 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost( 81 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost(
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 #endif 277 #endif
245 278
246 #if defined(USE_NSS) 279 #if defined(USE_NSS)
247 crypto::CryptoModuleBlockingPasswordDelegate* 280 crypto::CryptoModuleBlockingPasswordDelegate*
248 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 281 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
249 return NULL; 282 return NULL;
250 } 283 }
251 #endif 284 #endif
252 285
253 } // namespace content 286 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698