Index: remoting/host/desktop_environment.h |
diff --git a/remoting/host/desktop_environment.h b/remoting/host/desktop_environment.h |
index 90bab71eac624323f810a7ff66c25bc9ecd7db21..ed1b89be849d7c3f70cf22b1dda88d5d54429acf 100644 |
--- a/remoting/host/desktop_environment.h |
+++ b/remoting/host/desktop_environment.h |
@@ -7,7 +7,6 @@ |
#include "base/basictypes.h" |
#include "base/scoped_ptr.h" |
-#include "remoting/protocol/host_stub.h" |
namespace remoting { |
@@ -17,40 +16,13 @@ class InputStub; |
class Capturer; |
-class DesktopEnvironment : public protocol::HostStub { |
+class DesktopEnvironment { |
public: |
- // Callback interface for passing events to the ChromotingHost. |
- class EventHandler { |
- public: |
- virtual ~EventHandler() {} |
- |
- // Called to signal that local login has succeeded and ChromotingHost can |
- // proceed with the next step. |
- virtual void LocalLoginSucceeded() = 0; |
- |
- // Called to signal that local login has failed. |
- virtual void LocalLoginFailed() = 0; |
- }; |
- |
DesktopEnvironment(Capturer* capturer, protocol::InputStub* input_stub); |
virtual ~DesktopEnvironment(); |
Capturer* capturer() const { return capturer_.get(); } |
protocol::InputStub* input_stub() const { return input_stub_.get(); } |
- // Called by ChromotingHost constructor |
- void set_event_handler(EventHandler* event_handler) { |
- event_handler_ = event_handler; |
- } |
- |
- // protocol::HostStub interface. |
- virtual void SuggestResolution( |
- const protocol::SuggestResolutionRequest* msg, Task* done); |
- virtual void BeginSessionRequest( |
- const protocol::LocalLoginCredentials* credentials, Task* done); |
- |
- protected: |
- // Allow access by DesktopEnvironmentFake for unittest. |
- EventHandler* event_handler_; |
private: |
// Capturer to be used by ScreenRecorder. Once the ScreenRecorder is |