OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/content_browser_client.h" | 5 #include "content/browser/content_browser_client.h" |
6 | 6 |
7 #include "base/memory/singleton.h" | 7 #include "base/memory/singleton.h" |
8 #include "content/browser/webui/empty_web_ui_factory.h" | 8 #include "content/browser/webui/empty_web_ui_factory.h" |
9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 WebUIFactory* ContentBrowserClient::GetWebUIFactory() { | 27 WebUIFactory* ContentBrowserClient::GetWebUIFactory() { |
28 // Return an empty factory so callsites don't have to check for NULL. | 28 // Return an empty factory so callsites don't have to check for NULL. |
29 return EmptyWebUIFactory::Get(); | 29 return EmptyWebUIFactory::Get(); |
30 } | 30 } |
31 | 31 |
32 GURL ContentBrowserClient::GetEffectiveURL(Profile* profile, const GURL& url) { | 32 GURL ContentBrowserClient::GetEffectiveURL(Profile* profile, const GURL& url) { |
33 return url; | 33 return url; |
34 } | 34 } |
35 | 35 |
| 36 const std::set<std::string>* |
| 37 ContentBrowserClient::GetSchemesSameAsAnySiteInstance() { |
| 38 return NULL; |
| 39 } |
| 40 |
36 GURL ContentBrowserClient::GetAlternateErrorPageURL(const TabContents* tab) { | 41 GURL ContentBrowserClient::GetAlternateErrorPageURL(const TabContents* tab) { |
37 return GURL(); | 42 return GURL(); |
38 } | 43 } |
39 | 44 |
40 std::string ContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 45 std::string ContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
41 const std::string& alias_name) { | 46 const std::string& alias_name) { |
42 return alias_name; | 47 return alias_name; |
43 } | 48 } |
44 | 49 |
45 void ContentBrowserClient::AppendExtraCommandLineSwitches( | 50 void ContentBrowserClient::AppendExtraCommandLineSwitches( |
(...skipping 30 matching lines...) Expand all Loading... |
76 return true; | 81 return true; |
77 } | 82 } |
78 | 83 |
79 #if defined(OS_LINUX) | 84 #if defined(OS_LINUX) |
80 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { | 85 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { |
81 return -1; | 86 return -1; |
82 } | 87 } |
83 #endif | 88 #endif |
84 | 89 |
85 } // namespace content | 90 } // namespace content |
OLD | NEW |