| 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/files/file_path.h" |    7 #include "base/files/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  Loading... | 
|   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 std::vector<std::string> ContentBrowserClient::GetAdditionalWebUISchemes() { | 
 |   40   return std::vector<std::string>(); | 
 |   41 } | 
 |   42  | 
|   39 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( |   43 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( | 
|   40     BrowserContext* browser_context, |   44     BrowserContext* browser_context, | 
|   41     scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |   45     ProtocolHandlerMap* protocol_handlers) { | 
|   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; |   46   return NULL; | 
|   52 } |   47 } | 
|   53  |   48  | 
|   54 net::URLRequestContextGetter* |   49 net::URLRequestContextGetter* | 
|   55 ContentBrowserClient::CreateRequestContextForStoragePartition( |   50 ContentBrowserClient::CreateRequestContextForStoragePartition( | 
|   56     BrowserContext* browser_context, |   51     BrowserContext* browser_context, | 
|   57     const base::FilePath& partition_path, |   52     const base::FilePath& partition_path, | 
|   58     bool in_memory, |   53     bool in_memory, | 
|   59     scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |   54     ProtocolHandlerMap* protocol_handlers) { | 
|   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; |   55   return NULL; | 
|   70 } |   56 } | 
|   71  |   57  | 
|   72 bool ContentBrowserClient::IsHandledURL(const GURL& url) { |   58 bool ContentBrowserClient::IsHandledURL(const GURL& url) { | 
|   73   return false; |   59   return false; | 
|   74 } |   60 } | 
|   75  |   61  | 
|   76 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, |   62 bool ContentBrowserClient::IsSuitableHost(RenderProcessHost* process_host, | 
|   77                                           const GURL& site_url) { |   63                                           const GURL& site_url) { | 
|   78   return true; |   64   return true; | 
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  283 #endif |  269 #endif | 
|  284  |  270  | 
|  285 #if defined(USE_NSS) |  271 #if defined(USE_NSS) | 
|  286 crypto::CryptoModuleBlockingPasswordDelegate* |  272 crypto::CryptoModuleBlockingPasswordDelegate* | 
|  287     ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |  273     ContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 
|  288   return NULL; |  274   return NULL; | 
|  289 } |  275 } | 
|  290 #endif |  276 #endif | 
|  291  |  277  | 
|  292 }  // namespace content |  278 }  // namespace content | 
| OLD | NEW |