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 // TODO(ajwong): We need to come up with a better description of the | 5 // TODO(ajwong): We need to come up with a better description of the |
6 // responsibilities for each thread. | 6 // responsibilities for each thread. |
7 | 7 |
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
10 | 10 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 virtual void DidChangeView(const pp::View& view) OVERRIDE; | 109 virtual void DidChangeView(const pp::View& view) OVERRIDE; |
110 virtual bool Init(uint32_t argc, const char* argn[], | 110 virtual bool Init(uint32_t argc, const char* argn[], |
111 const char* argv[]) OVERRIDE; | 111 const char* argv[]) OVERRIDE; |
112 virtual void HandleMessage(const pp::Var& message) OVERRIDE; | 112 virtual void HandleMessage(const pp::Var& message) OVERRIDE; |
113 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; | 113 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; |
114 | 114 |
115 // ClientUserInterface interface. | 115 // ClientUserInterface interface. |
116 virtual void OnConnectionState(protocol::ConnectionToHost::State state, | 116 virtual void OnConnectionState(protocol::ConnectionToHost::State state, |
117 protocol::ErrorCode error) OVERRIDE; | 117 protocol::ErrorCode error) OVERRIDE; |
118 virtual void OnConnectionReady(bool ready) OVERRIDE; | 118 virtual void OnConnectionReady(bool ready) OVERRIDE; |
| 119 virtual void OnRouteChanged(const std::string& channel_name, |
| 120 const protocol::TransportRoute& route) OVERRIDE; |
119 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; | 121 virtual void SetCapabilities(const std::string& capabilities) OVERRIDE; |
120 virtual void SetPairingResponse( | 122 virtual void SetPairingResponse( |
121 const protocol::PairingResponse& pairing_response) OVERRIDE; | 123 const protocol::PairingResponse& pairing_response) OVERRIDE; |
122 virtual void DeliverHostMessage( | 124 virtual void DeliverHostMessage( |
123 const protocol::ExtensionMessage& message) OVERRIDE; | 125 const protocol::ExtensionMessage& message) OVERRIDE; |
124 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; | 126 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; |
125 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; | 127 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; |
126 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> | 128 virtual scoped_ptr<protocol::ThirdPartyClientAuthenticator::TokenFetcher> |
127 GetTokenFetcher(const std::string& host_public_key) OVERRIDE; | 129 GetTokenFetcher(const std::string& host_public_key) OVERRIDE; |
128 | 130 |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 267 |
266 // Weak reference to this instance, used for global logging and task posting. | 268 // Weak reference to this instance, used for global logging and task posting. |
267 base::WeakPtrFactory<ChromotingInstance> weak_factory_; | 269 base::WeakPtrFactory<ChromotingInstance> weak_factory_; |
268 | 270 |
269 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); | 271 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); |
270 }; | 272 }; |
271 | 273 |
272 } // namespace remoting | 274 } // namespace remoting |
273 | 275 |
274 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ | 276 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ |
OLD | NEW |