| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 5 #ifndef REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 6 #define REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Returns the session configuration that was negotiated with the host. | 114 // Returns the session configuration that was negotiated with the host. |
| 115 virtual const SessionConfig& config(); | 115 virtual const SessionConfig& config(); |
| 116 | 116 |
| 117 // Stubs for sending data to the host. | 117 // Stubs for sending data to the host. |
| 118 virtual ClipboardStub* clipboard_forwarder(); | 118 virtual ClipboardStub* clipboard_forwarder(); |
| 119 virtual HostStub* host_stub(); | 119 virtual HostStub* host_stub(); |
| 120 virtual InputStub* input_stub(); | 120 virtual InputStub* input_stub(); |
| 121 | 121 |
| 122 // SignalStrategy::StatusObserver interface. | 122 // SignalStrategy::StatusObserver interface. |
| 123 virtual void OnSignalStrategyStateChange( | 123 virtual void OnSignalStrategyStateChange( |
| 124 SignalStrategy::State state) OVERRIDE; | 124 SignalStrategy::State state) override; |
| 125 virtual bool OnSignalStrategyIncomingStanza( | 125 virtual bool OnSignalStrategyIncomingStanza( |
| 126 const buzz::XmlElement* stanza) OVERRIDE; | 126 const buzz::XmlElement* stanza) override; |
| 127 | 127 |
| 128 // SessionManager::Listener interface. | 128 // SessionManager::Listener interface. |
| 129 virtual void OnSessionManagerReady() OVERRIDE; | 129 virtual void OnSessionManagerReady() override; |
| 130 virtual void OnIncomingSession( | 130 virtual void OnIncomingSession( |
| 131 Session* session, | 131 Session* session, |
| 132 SessionManager::IncomingSessionResponse* response) OVERRIDE; | 132 SessionManager::IncomingSessionResponse* response) override; |
| 133 | 133 |
| 134 // Session::EventHandler interface. | 134 // Session::EventHandler interface. |
| 135 virtual void OnSessionStateChange(Session::State state) OVERRIDE; | 135 virtual void OnSessionStateChange(Session::State state) override; |
| 136 virtual void OnSessionRouteChange(const std::string& channel_name, | 136 virtual void OnSessionRouteChange(const std::string& channel_name, |
| 137 const TransportRoute& route) OVERRIDE; | 137 const TransportRoute& route) override; |
| 138 | 138 |
| 139 // MonitoredVideoStub::EventHandler interface. | 139 // MonitoredVideoStub::EventHandler interface. |
| 140 virtual void OnVideoChannelStatus(bool active); | 140 virtual void OnVideoChannelStatus(bool active); |
| 141 | 141 |
| 142 // Return the current state of ConnectionToHost. | 142 // Return the current state of ConnectionToHost. |
| 143 State state() const; | 143 State state() const; |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 // Callbacks for channel initialization | 146 // Callbacks for channel initialization |
| 147 void OnChannelInitialized(bool successful); | 147 void OnChannelInitialized(bool successful); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 ErrorCode error_; | 185 ErrorCode error_; |
| 186 | 186 |
| 187 private: | 187 private: |
| 188 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); | 188 DISALLOW_COPY_AND_ASSIGN(ConnectionToHost); |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace protocol | 191 } // namespace protocol |
| 192 } // namespace remoting | 192 } // namespace remoting |
| 193 | 193 |
| 194 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ | 194 #endif // REMOTING_PROTOCOL_CONNECTION_TO_HOST_H_ |
| OLD | NEW |