| 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 // 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 OVERRIDE; | 66 OVERRIDE; |
| 67 | 67 |
| 68 // CursorShapeStub implementation for receiving cursor shape updates. | 68 // CursorShapeStub implementation for receiving cursor shape updates. |
| 69 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) | 69 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) |
| 70 OVERRIDE; | 70 OVERRIDE; |
| 71 | 71 |
| 72 // ConnectionToHost::HostEventCallback implementation. | 72 // ConnectionToHost::HostEventCallback implementation. |
| 73 virtual void OnConnectionState( | 73 virtual void OnConnectionState( |
| 74 protocol::ConnectionToHost::State state, | 74 protocol::ConnectionToHost::State state, |
| 75 protocol::ErrorCode error) OVERRIDE; | 75 protocol::ErrorCode error) OVERRIDE; |
| 76 virtual void OnConnectionReady(bool ready) OVERRIDE; |
| 76 | 77 |
| 77 // VideoStub implementation. | 78 // VideoStub implementation. |
| 78 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 79 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| 79 const base::Closure& done) OVERRIDE; | 80 const base::Closure& done) OVERRIDE; |
| 80 virtual int GetPendingVideoPackets() OVERRIDE; | 81 virtual int GetPendingVideoPackets() OVERRIDE; |
| 81 | 82 |
| 82 // AudioStub implementation. | 83 // AudioStub implementation. |
| 83 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, | 84 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, |
| 84 const base::Closure& done) OVERRIDE; | 85 const base::Closure& done) OVERRIDE; |
| 85 | 86 |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 // WeakPtr used to avoid tasks accessing the client after it is deleted. | 137 // WeakPtr used to avoid tasks accessing the client after it is deleted. |
| 137 base::WeakPtrFactory<ChromotingClient> weak_factory_; | 138 base::WeakPtrFactory<ChromotingClient> weak_factory_; |
| 138 base::WeakPtr<ChromotingClient> weak_ptr_; | 139 base::WeakPtr<ChromotingClient> weak_ptr_; |
| 139 | 140 |
| 140 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 141 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
| 141 }; | 142 }; |
| 142 | 143 |
| 143 } // namespace remoting | 144 } // namespace remoting |
| 144 | 145 |
| 145 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 146 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
| OLD | NEW |