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

Unified Diff: remoting/host/desktop_environment_factory.h

Issue 11018004: Fix ChromotingHost and DesktopEnvironmentFactory references to TaskRunners. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: remoting/host/desktop_environment_factory.h
diff --git a/remoting/host/desktop_environment_factory.h b/remoting/host/desktop_environment_factory.h
index c77aef6a0a5ca0ba01f5b735937b37d7e22afd10..9bbd71c165699b77b0a5dea19463ea700a3eba4e 100644
--- a/remoting/host/desktop_environment_factory.h
+++ b/remoting/host/desktop_environment_factory.h
@@ -6,26 +6,34 @@
#define REMOTING_HOST_DESKTOP_ENVIRONMENT_FACTORY_H_
#include "base/basictypes.h"
+#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
+namespace base {
+class SingleThreadTaskRunner;
+} // namespace base
+
namespace remoting {
-class ChromotingHostContext;
class DesktopEnvironment;
class DesktopEnvironmentFactory {
public:
- DesktopEnvironmentFactory();
+ DesktopEnvironmentFactory(
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner,
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner);
virtual ~DesktopEnvironmentFactory();
- virtual scoped_ptr<DesktopEnvironment> Create(
- ChromotingHostContext* context);
+ virtual scoped_ptr<DesktopEnvironment> Create();
// Returns |true| if created |DesktopEnvironment| instances support audio
// capture.
virtual bool SupportsAudioCapture() const;
protected:
+ scoped_refptr<base::SingleThreadTaskRunner> input_task_runner_;
alexeypa (please no reviews) 2012/10/01 18:31:34 Now that you have these pointers here, you will ne
Wez 2012/10/02 05:19:44 Good point; I've updated things to destroy the Des
+ scoped_refptr<base::SingleThreadTaskRunner> ui_task_runner_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopEnvironmentFactory);
};

Powered by Google App Engine
This is Rietveld 408576698