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

Side by Side Diff: remoting/host/remoting_me2me_host.cc

Issue 12047101: Move screen capturers from remoting/capturer to media/video/capturer/screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/sas_injector_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 10 matching lines...) Expand all
21 #include "base/stringize_macros.h" 21 #include "base/stringize_macros.h"
22 #include "base/synchronization/waitable_event.h" 22 #include "base/synchronization/waitable_event.h"
23 #include "base/threading/thread.h" 23 #include "base/threading/thread.h"
24 #include "base/utf_string_conversions.h" 24 #include "base/utf_string_conversions.h"
25 #include "base/win/windows_version.h" 25 #include "base/win/windows_version.h"
26 #include "build/build_config.h" 26 #include "build/build_config.h"
27 #include "crypto/nss_util.h" 27 #include "crypto/nss_util.h"
28 #include "ipc/ipc_channel.h" 28 #include "ipc/ipc_channel.h"
29 #include "ipc/ipc_channel_proxy.h" 29 #include "ipc/ipc_channel_proxy.h"
30 #include "ipc/ipc_listener.h" 30 #include "ipc/ipc_listener.h"
31 #include "media/video/capture/screen/screen_capturer.h"
31 #include "net/base/network_change_notifier.h" 32 #include "net/base/network_change_notifier.h"
32 #include "net/socket/ssl_server_socket.h" 33 #include "net/socket/ssl_server_socket.h"
33 #include "remoting/base/auto_thread_task_runner.h" 34 #include "remoting/base/auto_thread_task_runner.h"
34 #include "remoting/base/breakpad.h" 35 #include "remoting/base/breakpad.h"
35 #include "remoting/base/constants.h" 36 #include "remoting/base/constants.h"
36 #include "remoting/capturer/video_frame_capturer.h"
37 #include "remoting/host/basic_desktop_environment.h" 37 #include "remoting/host/basic_desktop_environment.h"
38 #include "remoting/host/branding.h" 38 #include "remoting/host/branding.h"
39 #include "remoting/host/chromoting_host.h" 39 #include "remoting/host/chromoting_host.h"
40 #include "remoting/host/chromoting_host_context.h" 40 #include "remoting/host/chromoting_host_context.h"
41 #include "remoting/host/chromoting_messages.h" 41 #include "remoting/host/chromoting_messages.h"
42 #include "remoting/host/config_file_watcher.h" 42 #include "remoting/host/config_file_watcher.h"
43 #include "remoting/host/curtain_mode.h" 43 #include "remoting/host/curtain_mode.h"
44 #include "remoting/host/curtaining_host_observer.h" 44 #include "remoting/host/curtaining_host_observer.h"
45 #include "remoting/host/desktop_environment.h" 45 #include "remoting/host/desktop_environment.h"
46 #include "remoting/host/desktop_resizer.h" 46 #include "remoting/host/desktop_resizer.h"
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread()); 545 DCHECK(context_->ui_task_runner()->BelongsToCurrentThread());
546 546
547 if (!InitWithCommandLine(CommandLine::ForCurrentProcess())) { 547 if (!InitWithCommandLine(CommandLine::ForCurrentProcess())) {
548 OnConfigWatcherError(); 548 OnConfigWatcherError();
549 return; 549 return;
550 } 550 }
551 551
552 #if defined(OS_LINUX) 552 #if defined(OS_LINUX)
553 // TODO(sergeyu): Pass configuration parameters to the Linux-specific version 553 // TODO(sergeyu): Pass configuration parameters to the Linux-specific version
554 // of DesktopEnvironmentFactory when we have it. 554 // of DesktopEnvironmentFactory when we have it.
555 remoting::VideoFrameCapturer::EnableXDamage(true); 555 media::ScreenCapturer::EnableXDamage(true);
556 556
557 // If an audio pipe is specific on the command-line then initialize 557 // If an audio pipe is specific on the command-line then initialize
558 // AudioCapturerLinux to capture from it. 558 // AudioCapturerLinux to capture from it.
559 FilePath audio_pipe_name = CommandLine::ForCurrentProcess()-> 559 FilePath audio_pipe_name = CommandLine::ForCurrentProcess()->
560 GetSwitchValuePath(kAudioPipeSwitchName); 560 GetSwitchValuePath(kAudioPipeSwitchName);
561 if (!audio_pipe_name.empty()) { 561 if (!audio_pipe_name.empty()) {
562 remoting::AudioCapturerLinux::InitializePipeReader( 562 remoting::AudioCapturerLinux::InitializePipeReader(
563 context_->audio_task_runner(), audio_pipe_name); 563 context_->audio_task_runner(), audio_pipe_name);
564 } 564 }
565 #endif // defined(OS_LINUX) 565 #endif // defined(OS_LINUX)
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
1134 user32.GetFunctionPointer("SetProcessDPIAware")); 1134 user32.GetFunctionPointer("SetProcessDPIAware"));
1135 set_process_dpi_aware(); 1135 set_process_dpi_aware();
1136 } 1136 }
1137 1137
1138 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting 1138 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting
1139 // the command line from GetCommandLineW(), so we can safely pass NULL here. 1139 // the command line from GetCommandLineW(), so we can safely pass NULL here.
1140 return main(0, NULL); 1140 return main(0, NULL);
1141 } 1141 }
1142 1142
1143 #endif // defined(OS_WIN) 1143 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/ipc_video_frame_capturer.cc ('k') | remoting/host/sas_injector_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698