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

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

Issue 11053024: Remove ChromotingHostContext from DnsBlackholeChecker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/dns_blackhole_checker.h » ('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 #include "remoting/host/desktop_environment.h" 5 #include "remoting/host/desktop_environment.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "remoting/host/audio_capturer.h" 8 #include "remoting/host/audio_capturer.h"
9 #include "remoting/host/chromoting_host_context.h"
10 #include "remoting/host/desktop_environment.h" 9 #include "remoting/host/desktop_environment.h"
11 #include "remoting/host/event_executor.h" 10 #include "remoting/host/event_executor.h"
12 #include "remoting/host/video_frame_capturer.h" 11 #include "remoting/host/video_frame_capturer.h"
13 12
14 namespace remoting { 13 namespace remoting {
15 14
16 DesktopEnvironment::DesktopEnvironment( 15 DesktopEnvironment::DesktopEnvironment(
17 scoped_ptr<AudioCapturer> audio_capturer, 16 scoped_ptr<AudioCapturer> audio_capturer,
18 scoped_ptr<EventExecutor> event_executor, 17 scoped_ptr<EventExecutor> event_executor,
19 scoped_ptr<VideoFrameCapturer> video_capturer) 18 scoped_ptr<VideoFrameCapturer> video_capturer)
20 : audio_capturer_(audio_capturer.Pass()), 19 : audio_capturer_(audio_capturer.Pass()),
21 event_executor_(event_executor.Pass()), 20 event_executor_(event_executor.Pass()),
22 video_capturer_(video_capturer.Pass()) { 21 video_capturer_(video_capturer.Pass()) {
23 } 22 }
24 23
25 DesktopEnvironment::~DesktopEnvironment() { 24 DesktopEnvironment::~DesktopEnvironment() {
26 event_executor_.release()->StopAndDelete(); 25 event_executor_.release()->StopAndDelete();
27 } 26 }
28 27
29 void DesktopEnvironment::Start( 28 void DesktopEnvironment::Start(
30 scoped_ptr<protocol::ClipboardStub> client_clipboard) { 29 scoped_ptr<protocol::ClipboardStub> client_clipboard) {
31 event_executor_->Start(client_clipboard.Pass()); 30 event_executor_->Start(client_clipboard.Pass());
32 } 31 }
33 32
34 } // namespace remoting 33 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/desktop_environment.h ('k') | remoting/host/dns_blackhole_checker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698