| 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  | 
|  1097 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { |  1107 bool ChromeContentBrowserClient::LogWebUIUrl(const GURL& web_ui_url) const { | 
|  1098   return webui::LogWebUIUrl(web_ui_url); |  1108   return webui::LogWebUIUrl(web_ui_url); | 
|  1099 } |  1109 } | 
|  1100  |  1110  | 
|  1101 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) { |  1111 bool ChromeContentBrowserClient::IsHandledURL(const GURL& url) { | 
|  1102   return ProfileIOData::IsHandledURL(url); |  1112   return ProfileIOData::IsHandledURL(url); | 
|  1103 } |  1113 } | 
|  1104  |  1114  | 
|  1105 bool ChromeContentBrowserClient::CanCommitURL( |  1115 bool ChromeContentBrowserClient::CanCommitURL( | 
|  1106     content::RenderProcessHost* process_host, |  1116     content::RenderProcessHost* process_host, | 
| (...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2977   if (channel <= kMaxDisableEncryptionChannel) { |  2987   if (channel <= kMaxDisableEncryptionChannel) { | 
|  2978     static const char* const kWebRtcDevSwitchNames[] = { |  2988     static const char* const kWebRtcDevSwitchNames[] = { | 
|  2979       switches::kDisableWebRtcEncryption, |  2989       switches::kDisableWebRtcEncryption, | 
|  2980     }; |  2990     }; | 
|  2981     to_command_line->CopySwitchesFrom(from_command_line, |  2991     to_command_line->CopySwitchesFrom(from_command_line, | 
|  2982                                       kWebRtcDevSwitchNames, |  2992                                       kWebRtcDevSwitchNames, | 
|  2983                                       arraysize(kWebRtcDevSwitchNames)); |  2993                                       arraysize(kWebRtcDevSwitchNames)); | 
|  2984   } |  2994   } | 
|  2985 } |  2995 } | 
|  2986 #endif  // defined(ENABLE_WEBRTC) |  2996 #endif  // defined(ENABLE_WEBRTC) | 
| OLD | NEW |