| 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 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2721 tokenizer.set_quote_chars("\""); | 2721 tokenizer.set_quote_chars("\""); |
| 2722 while (tokenizer.GetNext()) { | 2722 while (tokenizer.GetNext()) { |
| 2723 if (tokenizer.token() == mime_type) | 2723 if (tokenizer.token() == mime_type) |
| 2724 return true; | 2724 return true; |
| 2725 } | 2725 } |
| 2726 | 2726 |
| 2727 return false; | 2727 return false; |
| 2728 } | 2728 } |
| 2729 #endif // defined(OS_WIN) | 2729 #endif // defined(OS_WIN) |
| 2730 | 2730 |
| 2731 void ChromeContentBrowserClient::RegisterRenderProcessMojoServices( | 2731 void ChromeContentBrowserClient::ExposeInterfacesToRenderer( |
| 2732 content::ServiceRegistry* registry, | 2732 shell::InterfaceRegistry* registry, |
| 2733 content::RenderProcessHost* render_process_host) { | 2733 content::RenderProcessHost* render_process_host) { |
| 2734 registry->AddService( | 2734 registry->AddInterface( |
| 2735 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create)); | 2735 base::Bind(&startup_metric_utils::StartupMetricHostImpl::Create)); |
| 2736 } | 2736 } |
| 2737 | 2737 |
| 2738 void ChromeContentBrowserClient::RegisterFrameMojoShellInterfaces( | 2738 void ChromeContentBrowserClient::RegisterFrameMojoShellInterfaces( |
| 2739 shell::InterfaceRegistry* registry, | 2739 shell::InterfaceRegistry* registry, |
| 2740 content::RenderFrameHost* render_frame_host) { | 2740 content::RenderFrameHost* render_frame_host) { |
| 2741 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. | 2741 // TODO(xhwang): Only register this when ENABLE_MOJO_MEDIA. |
| 2742 #if defined(OS_CHROMEOS) | 2742 #if defined(OS_CHROMEOS) |
| 2743 registry->AddInterface( | 2743 registry->AddInterface( |
| 2744 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, | 2744 base::Bind(&chromeos::attestation::PlatformVerificationImpl::Create, |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2970 if (channel <= kMaxDisableEncryptionChannel) { | 2970 if (channel <= kMaxDisableEncryptionChannel) { |
| 2971 static const char* const kWebRtcDevSwitchNames[] = { | 2971 static const char* const kWebRtcDevSwitchNames[] = { |
| 2972 switches::kDisableWebRtcEncryption, | 2972 switches::kDisableWebRtcEncryption, |
| 2973 }; | 2973 }; |
| 2974 to_command_line->CopySwitchesFrom(from_command_line, | 2974 to_command_line->CopySwitchesFrom(from_command_line, |
| 2975 kWebRtcDevSwitchNames, | 2975 kWebRtcDevSwitchNames, |
| 2976 arraysize(kWebRtcDevSwitchNames)); | 2976 arraysize(kWebRtcDevSwitchNames)); |
| 2977 } | 2977 } |
| 2978 } | 2978 } |
| 2979 #endif // defined(ENABLE_WEBRTC) | 2979 #endif // defined(ENABLE_WEBRTC) |
| OLD | NEW |