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

Unified Diff: remoting/host/win/session_desktop_environment_factory.cc

Issue 10915206: [Chromoting] Refactoring DesktopEnvironment and moving screen/audio recorders to ClientSession. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/win/session_desktop_environment_factory.h ('k') | remoting/host/win/session_event_executor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/win/session_desktop_environment_factory.cc
diff --git a/remoting/host/win/session_desktop_environment_factory.cc b/remoting/host/win/session_desktop_environment_factory.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b90ef33f9c5095ab3d1e66d5d8ea4f1ae183d21c
--- /dev/null
+++ b/remoting/host/win/session_desktop_environment_factory.cc
@@ -0,0 +1,38 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "remoting/host/win/session_desktop_environment_factory.h"
+
+#include "remoting/host/audio_capturer.h"
+#include "remoting/host/chromoting_host_context.h"
+#include "remoting/host/desktop_environment.h"
+#include "remoting/host/event_executor.h"
+#include "remoting/host/video_frame_capturer.h"
+#include "remoting/host/win/session_event_executor.h"
+
+namespace remoting {
+
+SessionDesktopEnvironmentFactory::SessionDesktopEnvironmentFactory() {
+}
+
+SessionDesktopEnvironmentFactory::~SessionDesktopEnvironmentFactory() {
+}
+
+scoped_ptr<DesktopEnvironment> SessionDesktopEnvironmentFactory::Create(
+ ChromotingHostContext* context) {
+ scoped_ptr<AudioCapturer> audio_capturer = AudioCapturer::Create();
+ scoped_ptr<EventExecutor> event_executor = EventExecutor::Create(
+ context->desktop_task_runner(),
+ context->ui_task_runner());
+ event_executor.reset(new SessionEventExecutorWin(
+ context->desktop_task_runner(),
+ event_executor.Pass()));
+ scoped_ptr<VideoFrameCapturer> video_capturer(VideoFrameCapturer::Create());
+ return scoped_ptr<DesktopEnvironment>(new DesktopEnvironment(
+ audio_capturer.Pass(),
+ event_executor.Pass(),
+ video_capturer.Pass()));
+}
+
+} // namespace remoting
« no previous file with comments | « remoting/host/win/session_desktop_environment_factory.h ('k') | remoting/host/win/session_event_executor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698