Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1019)

Side by Side Diff: remoting/client/plugin/chromoting_instance.h

Issue 126123002: Show connection type in web-app. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698