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

Unified Diff: remoting/host/desktop_environment.h

Issue 9617027: Chromoting: Implemented security attention sequence (SAS) emulation on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 8 years, 9 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/chromoting_messages.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_environment.h
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h
index f95089bd90a971a40cf97433c5cabdb658da541a..4474a12aeb5e42e629b7329ff92950853e376315 100644
--- a/remoting/host/desktop_environment.h
+++ b/remoting/host/desktop_environment.h
@@ -18,24 +18,31 @@ namespace remoting {
class Capturer;
class ChromotingHost;
class ChromotingHostContext;
-class EventExecutor;
+
+namespace protocol {
+class InputStub;
+};
class DesktopEnvironment {
public:
- static DesktopEnvironment* Create(ChromotingHostContext* context);
+ static scoped_ptr<DesktopEnvironment> Create(ChromotingHostContext* context);
+ static scoped_ptr<DesktopEnvironment> CreateFake(
+ ChromotingHostContext* context,
+ scoped_ptr<Capturer> capturer,
+ scoped_ptr<protocol::InputStub> event_executor);
- // DesktopEnvironment takes ownership of all the objects passed in.
- DesktopEnvironment(ChromotingHostContext* context,
- Capturer* capturer,
- EventExecutor* event_executor);
virtual ~DesktopEnvironment();
void set_host(ChromotingHost* host) { host_ = host; }
Capturer* capturer() const { return capturer_.get(); }
- EventExecutor* event_executor() const { return event_executor_.get(); }
+ protocol::InputStub* event_executor() const { return event_executor_.get(); }
private:
+ DesktopEnvironment(ChromotingHostContext* context,
+ scoped_ptr<Capturer> capturer,
+ scoped_ptr<protocol::InputStub> event_executor);
+
// The host that owns this DesktopEnvironment.
ChromotingHost* host_;
@@ -47,7 +54,7 @@ class DesktopEnvironment {
scoped_ptr<Capturer> capturer_;
// Executes input events received from the client.
- scoped_ptr<EventExecutor> event_executor_;
+ scoped_ptr<protocol::InputStub> event_executor_;
DISALLOW_COPY_AND_ASSIGN(DesktopEnvironment);
};
« no previous file with comments | « remoting/host/chromoting_messages.cc ('k') | remoting/host/desktop_environment.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698