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 bool ContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) { |
| 37 return false; |
| 38 } |
| 39 |
36 GURL ContentBrowserClient::GetAlternateErrorPageURL(const TabContents* tab) { | 40 GURL ContentBrowserClient::GetAlternateErrorPageURL(const TabContents* tab) { |
37 return GURL(); | 41 return GURL(); |
38 } | 42 } |
39 | 43 |
40 std::string ContentBrowserClient::GetCanonicalEncodingNameByAliasName( | 44 std::string ContentBrowserClient::GetCanonicalEncodingNameByAliasName( |
41 const std::string& alias_name) { | 45 const std::string& alias_name) { |
42 return alias_name; | 46 return alias_name; |
43 } | 47 } |
44 | 48 |
45 void ContentBrowserClient::AppendExtraCommandLineSwitches( | 49 void ContentBrowserClient::AppendExtraCommandLineSwitches( |
(...skipping 30 matching lines...) Expand all Loading... |
76 return true; | 80 return true; |
77 } | 81 } |
78 | 82 |
79 #if defined(OS_LINUX) | 83 #if defined(OS_LINUX) |
80 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { | 84 int ContentBrowserClient::GetCrashSignalFD(const std::string& process_type) { |
81 return -1; | 85 return -1; |
82 } | 86 } |
83 #endif | 87 #endif |
84 | 88 |
85 } // namespace content | 89 } // namespace content |
OLD | NEW |