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 "content/public/common/url_constants.h" | |
8 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
9 #include "url/gurl.h" | 10 #include "url/gurl.h" |
10 | 11 |
11 namespace content { | 12 namespace content { |
12 | 13 |
13 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( | 14 BrowserMainParts* ContentBrowserClient::CreateBrowserMainParts( |
14 const MainFunctionParams& parameters) { | 15 const MainFunctionParams& parameters) { |
15 return NULL; | 16 return NULL; |
16 } | 17 } |
17 | 18 |
(...skipping 11 matching lines...) Expand all Loading... | |
29 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context, | 30 GURL ContentBrowserClient::GetEffectiveURL(BrowserContext* browser_context, |
30 const GURL& url) { | 31 const GURL& url) { |
31 return url; | 32 return url; |
32 } | 33 } |
33 | 34 |
34 bool ContentBrowserClient::ShouldUseProcessPerSite( | 35 bool ContentBrowserClient::ShouldUseProcessPerSite( |
35 BrowserContext* browser_context, const GURL& effective_url) { | 36 BrowserContext* browser_context, const GURL& effective_url) { |
36 return false; | 37 return false; |
37 } | 38 } |
38 | 39 |
40 void ContentBrowserClient::GetWebUIHostsToIgnoreParititionCheck( | |
41 std::vector<std::string>* hosts) { | |
42 hosts->push_back(kChromeUIResourcesHost); | |
jam
2014/03/05 22:29:46
this file should just be empty methods. move this
guohui
2014/03/05 23:04:24
then is it better to move this line to the subclas
jam
2014/03/06 01:54:47
if you do my comment in url_data_manager_backend.c
| |
43 } | |
44 | |
39 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( | 45 net::URLRequestContextGetter* ContentBrowserClient::CreateRequestContext( |
40 BrowserContext* browser_context, | 46 BrowserContext* browser_context, |
41 ProtocolHandlerMap* protocol_handlers) { | 47 ProtocolHandlerMap* protocol_handlers) { |
42 return NULL; | 48 return NULL; |
43 } | 49 } |
44 | 50 |
45 net::URLRequestContextGetter* | 51 net::URLRequestContextGetter* |
46 ContentBrowserClient::CreateRequestContextForStoragePartition( | 52 ContentBrowserClient::CreateRequestContextForStoragePartition( |
47 BrowserContext* browser_context, | 53 BrowserContext* browser_context, |
48 const base::FilePath& partition_path, | 54 const base::FilePath& partition_path, |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
302 content::BrowserContext* browser_context, | 308 content::BrowserContext* browser_context, |
303 const GURL& url) { | 309 const GURL& url) { |
304 return false; | 310 return false; |
305 } | 311 } |
306 | 312 |
307 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { | 313 bool ContentBrowserClient::IsPluginAllowedToUseDevChannelAPIs() { |
308 return false; | 314 return false; |
309 } | 315 } |
310 | 316 |
311 } // namespace content | 317 } // namespace content |
OLD | NEW |