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

Unified Diff: remoting/host/desktop_environment_factory.cc

Issue 11778049: Making DesktopEnvironment a factory class used by ClientSession to create audio/video capturers and… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 7 years, 11 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/desktop_environment_factory.h ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment_factory.cc
diff --git a/remoting/host/desktop_environment_factory.cc b/remoting/host/desktop_environment_factory.cc
deleted file mode 100644
index 893c0ccafa90dbf60e502f6e0caea0da2ee0fcac..0000000000000000000000000000000000000000
--- a/remoting/host/desktop_environment_factory.cc
+++ /dev/null
@@ -1,38 +0,0 @@
-// 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/desktop_environment_factory.h"
-
-#include "base/single_thread_task_runner.h"
-#include "remoting/capturer/video_frame_capturer.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"
-
-namespace remoting {
-
-DesktopEnvironmentFactory::DesktopEnvironmentFactory(
- scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
- scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner)
- : input_task_runner_(input_task_runner),
- ui_task_runner_(ui_task_runner) {
-}
-
-DesktopEnvironmentFactory::~DesktopEnvironmentFactory() {
-}
-
-scoped_ptr<DesktopEnvironment> DesktopEnvironmentFactory::Create() {
- scoped_ptr<DesktopEnvironment> environment(new DesktopEnvironment(
- AudioCapturer::Create(),
- EventExecutor::Create(input_task_runner_, ui_task_runner_),
- VideoFrameCapturer::Create()));
- return environment.Pass();
-}
-
-bool DesktopEnvironmentFactory::SupportsAudioCapture() const {
- return AudioCapturer::IsSupported();
-}
-
-} // namespace remoting
« no previous file with comments | « remoting/host/desktop_environment_factory.h ('k') | remoting/host/desktop_session_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698