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 <string> | 10 #include <string> |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 // CursorShapeStub implementation for receiving cursor shape updates. | 77 // CursorShapeStub implementation for receiving cursor shape updates. |
78 virtual void SetCursorShape( | 78 virtual void SetCursorShape( |
79 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; | 79 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; |
80 | 80 |
81 // ConnectionToHost::HostEventCallback implementation. | 81 // ConnectionToHost::HostEventCallback implementation. |
82 virtual void OnConnectionState( | 82 virtual void OnConnectionState( |
83 protocol::ConnectionToHost::State state, | 83 protocol::ConnectionToHost::State state, |
84 protocol::ErrorCode error) OVERRIDE; | 84 protocol::ErrorCode error) OVERRIDE; |
85 virtual void OnConnectionReady(bool ready) OVERRIDE; | 85 virtual void OnConnectionReady(bool ready) OVERRIDE; |
| 86 virtual void OnRouteChanged(const std::string& channel_name, |
| 87 const protocol::TransportRoute& route) OVERRIDE; |
86 | 88 |
87 private: | 89 private: |
88 // Called when the connection is authenticated. | 90 // Called when the connection is authenticated. |
89 void OnAuthenticated(); | 91 void OnAuthenticated(); |
90 | 92 |
91 // Called when all channels are connected. | 93 // Called when all channels are connected. |
92 void OnChannelsConnected(); | 94 void OnChannelsConnected(); |
93 | 95 |
94 // The following are not owned by this class. | 96 // The following are not owned by this class. |
95 ClientConfig config_; | 97 ClientConfig config_; |
(...skipping 19 matching lines...) Expand all Loading... |
115 // WeakPtr used to avoid tasks accessing the client after it is deleted. | 117 // WeakPtr used to avoid tasks accessing the client after it is deleted. |
116 base::WeakPtr<ChromotingClient> weak_ptr_; | 118 base::WeakPtr<ChromotingClient> weak_ptr_; |
117 base::WeakPtrFactory<ChromotingClient> weak_factory_; | 119 base::WeakPtrFactory<ChromotingClient> weak_factory_; |
118 | 120 |
119 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 121 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
120 }; | 122 }; |
121 | 123 |
122 } // namespace remoting | 124 } // namespace remoting |
123 | 125 |
124 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 126 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |