Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2310753002: Media Remoting: Data/Control plumbing between renderer and Media Router. (Closed)
Patch Set: Add input operation queuing to resolve race between data and message pipes. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h" 311 #include "components/spellcheck/browser/spellcheck_message_filter_platform.h"
312 #endif 312 #endif
313 313
314 #if defined(ENABLE_WEBRTC) 314 #if defined(ENABLE_WEBRTC)
315 #include "chrome/browser/media/audio_debug_recordings_handler.h" 315 #include "chrome/browser/media/audio_debug_recordings_handler.h"
316 #include "chrome/browser/media/webrtc/webrtc_event_log_handler.h" 316 #include "chrome/browser/media/webrtc/webrtc_event_log_handler.h"
317 #include "chrome/browser/media/webrtc/webrtc_logging_handler_host.h" 317 #include "chrome/browser/media/webrtc/webrtc_logging_handler_host.h"
318 #endif 318 #endif
319 319
320 #if defined(ENABLE_MEDIA_ROUTER) 320 #if defined(ENABLE_MEDIA_ROUTER)
321 #include "chrome/browser/media/cast_remoting_connector.h"
321 #include "chrome/browser/media/router/media_router_feature.h" 322 #include "chrome/browser/media/router/media_router_feature.h"
322 #include "chrome/browser/media/router/presentation_service_delegate_impl.h" 323 #include "chrome/browser/media/router/presentation_service_delegate_impl.h"
323 #endif 324 #endif
324 325
325 #if defined(ENABLE_WAYLAND_SERVER) 326 #if defined(ENABLE_WAYLAND_SERVER)
326 #include "chrome/browser/chrome_browser_main_extra_parts_exo.h" 327 #include "chrome/browser/chrome_browser_main_extra_parts_exo.h"
327 #endif 328 #endif
328 329
329 #if defined(ENABLE_MOJO_MEDIA) 330 #if defined(ENABLE_MOJO_MEDIA)
330 #include "chrome/browser/media/output_protection_impl.h" 331 #include "chrome/browser/media/output_protection_impl.h"
(...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after
2936 2937
2937 registry->AddInterface( 2938 registry->AddInterface(
2938 base::Bind(&password_manager::ContentPasswordManagerDriverFactory:: 2939 base::Bind(&password_manager::ContentPasswordManagerDriverFactory::
2939 BindPasswordManagerDriver, 2940 BindPasswordManagerDriver,
2940 render_frame_host)); 2941 render_frame_host));
2941 2942
2942 #if BUILDFLAG(ANDROID_JAVA_UI) 2943 #if BUILDFLAG(ANDROID_JAVA_UI)
2943 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame( 2944 ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame(
2944 registry, render_frame_host); 2945 registry, render_frame_host);
2945 #endif 2946 #endif
2947
2948 #if defined(ENABLE_MEDIA_ROUTER)
2949 registry->AddInterface(
2950 base::Bind(&CastRemotingConnector::CreateRemoterFactory,
2951 render_frame_host));
2952 #endif
2946 } 2953 }
2947 2954
2948 void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess( 2955 void ChromeContentBrowserClient::ExposeInterfacesToGpuProcess(
2949 shell::InterfaceRegistry* registry, 2956 shell::InterfaceRegistry* registry,
2950 content::GpuProcessHost* render_process_host) { 2957 content::GpuProcessHost* render_process_host) {
2951 } 2958 }
2952 2959
2953 void ChromeContentBrowserClient::RegisterInProcessMojoApplications( 2960 void ChromeContentBrowserClient::RegisterInProcessMojoApplications(
2954 StaticMojoApplicationMap* apps) { 2961 StaticMojoApplicationMap* apps) {
2955 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS) 2962 #if (ENABLE_MOJO_MEDIA_IN_BROWSER_PROCESS)
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
3176 if (channel <= kMaxDisableEncryptionChannel) { 3183 if (channel <= kMaxDisableEncryptionChannel) {
3177 static const char* const kWebRtcDevSwitchNames[] = { 3184 static const char* const kWebRtcDevSwitchNames[] = {
3178 switches::kDisableWebRtcEncryption, 3185 switches::kDisableWebRtcEncryption,
3179 }; 3186 };
3180 to_command_line->CopySwitchesFrom(from_command_line, 3187 to_command_line->CopySwitchesFrom(from_command_line,
3181 kWebRtcDevSwitchNames, 3188 kWebRtcDevSwitchNames,
3182 arraysize(kWebRtcDevSwitchNames)); 3189 arraysize(kWebRtcDevSwitchNames));
3183 } 3190 }
3184 } 3191 }
3185 #endif // defined(ENABLE_WEBRTC) 3192 #endif // defined(ENABLE_WEBRTC)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698