OLD | NEW |
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 22 matching lines...) Expand all Loading... |
33 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context, | 33 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context, |
34 const GURL& url) { | 34 const GURL& url) { |
35 return url; | 35 return url; |
36 } | 36 } |
37 | 37 |
38 bool ContentBrowserClient::ShouldUseProcessPerSite( | 38 bool ContentBrowserClient::ShouldUseProcessPerSite( |
39 BrowserContext* browser_context, const GURL& effective_url) { | 39 BrowserContext* browser_context, const GURL& effective_url) { |
40 return false; | 40 return false; |
41 } | 41 } |
42 | 42 |
| 43 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( |
| 44 BrowserContext* browser_context, |
| 45 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 46 blob_protocol_handler, |
| 47 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 48 file_system_protocol_handler, |
| 49 scoped_ptr<net::URLRequestJobFactory::Interceptor> |
| 50 developer_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::Interceptor> |
| 64 developer_protocol_handler) { |
| 65 return NULL; |
| 66 } |
| 67 |
43 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 68 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |
44 return false; | 69 return false; |
45 } | 70 } |
46 | 71 |
47 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, | 72 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, |
48 const GURL& site_url) { | 73 const GURL& site_url) { |
49 return true; | 74 return true; |
50 } | 75 } |
51 | 76 |
52 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost( | 77 bool ContentBrowserClient::ShouldTryToUseExistingProcessHost( |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
261 #endif | 286 #endif |
262 | 287 |
263 #if defined(USE_NSS) | 288 #if defined(USE_NSS) |
264 crypto::CryptoModuleBlockingPasswordDelegate* | 289 crypto::CryptoModuleBlockingPasswordDelegate* |
265 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 290 ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
266 return NULL; | 291 return NULL; |
267 } | 292 } |
268 #endif | 293 #endif |
269 | 294 |
270 } // namespace content | 295 } // namespace content |
OLD | NEW |