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 "chrome/browser/chrome_content_browser_client.h" | 5 #include "chrome/browser/chrome_content_browser_client.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 } | 1087 } |
1088 | 1088 |
1089 // These are treated as WebUI schemes but do not get WebUI bindings. Also, | 1089 // These are treated as WebUI schemes but do not get WebUI bindings. Also, |
1090 // view-source is allowed for these schemes. | 1090 // view-source is allowed for these schemes. |
1091 void ChromeContentBrowserClient::GetAdditionalWebUISchemes( | 1091 void ChromeContentBrowserClient::GetAdditionalWebUISchemes( |
1092 std::vector<std::string>* additional_schemes) { | 1092 std::vector<std::string>* additional_schemes) { |
1093 additional_schemes->push_back(chrome::kChromeSearchScheme); | 1093 additional_schemes->push_back(chrome::kChromeSearchScheme); |
1094 additional_schemes->push_back(dom_distiller::kDomDistillerScheme); | 1094 additional_schemes->push_back(dom_distiller::kDomDistillerScheme); |
1095 } | 1095 } |
1096 | 1096 |
1097 void ChromeContentBrowserClient::GetAdditionalWebUIHostsToIgnoreParititionCheck( | |
1098 std::vector<std::string>* hosts) { | |
1099 hosts->push_back(chrome::kChromeUIExtensionIconHost); | |
1100 hosts->push_back(chrome::kChromeUIFaviconHost); | |
1101 hosts->push_back(chrome::kChromeUIThemeHost); | |
1102 hosts->push_back(chrome::kChromeUIThumbnailHost); | |
1103 hosts->push_back(chrome::kChromeUIThumbnailHost2); | |
1104 hosts->push_back(chrome::kChromeUIThumbnailListHost); | |
1105 } | |
1106 | |
1107 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { | 1097 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { |
1108 return webui::LogWebUIUrl(web_ui_url); | 1098 return webui::LogWebUIUrl(web_ui_url); |
1109 } | 1099 } |
1110 | 1100 |
1111 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) { | 1101 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) { |
1112 return ProfileIOData::IsHandledURL(url); | 1102 return ProfileIOData::IsHandledURL(url); |
1113 } | 1103 } |
1114 | 1104 |
1115 bool ChromeContentBrowserClient::CanCommitURL( | 1105 bool ChromeContentBrowserClient::CanCommitURL( |
1116 content::RenderProcessHost* process_host, | 1106 content::RenderProcessHost* process_host, |
(...skipping 1859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2976 if (channel <= kMaxDisableEncryptionChannel) { | 2966 if (channel <= kMaxDisableEncryptionChannel) { |
2977 static const char* const kWebRtcDevSwitchNames[] = { | 2967 static const char* const kWebRtcDevSwitchNames[] = { |
2978 switches::kDisableWebRtcEncryption, | 2968 switches::kDisableWebRtcEncryption, |
2979 }; | 2969 }; |
2980 to_command_line->CopySwitchesFrom(from_command_line, | 2970 to_command_line->CopySwitchesFrom(from_command_line, |
2981 kWebRtcDevSwitchNames, | 2971 kWebRtcDevSwitchNames, |
2982 arraysize(kWebRtcDevSwitchNames)); | 2972 arraysize(kWebRtcDevSwitchNames)); |
2983 } | 2973 } |
2984 } | 2974 } |
2985 #endif // defined(ENABLE_WEBRTC) | 2975 #endif // defined(ENABLE_WEBRTC) |
OLD | NEW |