| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // ChromotingClient is the controller for the Client implementation. | 5 // ChromotingClient is the controller for the Client implementation. |
| 6 | 6 |
| 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 ChromotingStats* GetStats(); | 57 ChromotingStats* GetStats(); |
| 58 | 58 |
| 59 // Signals that the associated view may need updating. | 59 // Signals that the associated view may need updating. |
| 60 virtual void Repaint(); | 60 virtual void Repaint(); |
| 61 | 61 |
| 62 // ConnectionToHost::HostEventCallback implementation. | 62 // ConnectionToHost::HostEventCallback implementation. |
| 63 virtual void OnConnectionState( | 63 virtual void OnConnectionState( |
| 64 protocol::ConnectionToHost::State state, | 64 protocol::ConnectionToHost::State state, |
| 65 protocol::ConnectionToHost::Error error) OVERRIDE; | 65 protocol::ConnectionToHost::Error error) OVERRIDE; |
| 66 | 66 |
| 67 // ClientStub implementation. | |
| 68 virtual void BeginSessionResponse(const protocol::LocalLoginStatus* msg, | |
| 69 const base::Closure& done) OVERRIDE; | |
| 70 | |
| 71 // VideoStub implementation. | 67 // VideoStub implementation. |
| 72 virtual void ProcessVideoPacket(const VideoPacket* packet, | 68 virtual void ProcessVideoPacket(const VideoPacket* packet, |
| 73 const base::Closure& done) OVERRIDE; | 69 const base::Closure& done) OVERRIDE; |
| 74 virtual int GetPendingPackets() OVERRIDE; | 70 virtual int GetPendingPackets() OVERRIDE; |
| 75 | 71 |
| 76 private: | 72 private: |
| 77 struct QueuedVideoPacket { | 73 struct QueuedVideoPacket { |
| 78 QueuedVideoPacket(const VideoPacket* packet, const base::Closure& done); | 74 QueuedVideoPacket(const VideoPacket* packet, const base::Closure& done); |
| 79 ~QueuedVideoPacket(); | 75 ~QueuedVideoPacket(); |
| 80 const VideoPacket* packet; | 76 const VideoPacket* packet; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 ScopedThreadProxy thread_proxy_; | 123 ScopedThreadProxy thread_proxy_; |
| 128 | 124 |
| 129 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 125 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
| 130 }; | 126 }; |
| 131 | 127 |
| 132 } // namespace remoting | 128 } // namespace remoting |
| 133 | 129 |
| 134 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); | 130 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); |
| 135 | 131 |
| 136 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 132 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| OLD | NEW |