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

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

Issue 10692179: Propagate connection state from networking layer to UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
« no previous file with comments | « remoting/client/client_user_interface.h ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void DidChangeView(const pp::Rect& position, 101 virtual void DidChangeView(const pp::Rect& position,
102 const pp::Rect& clip) OVERRIDE; 102 const pp::Rect& clip) OVERRIDE;
103 virtual bool Init(uint32_t argc, const char* argn[], 103 virtual bool Init(uint32_t argc, const char* argn[],
104 const char* argv[]) OVERRIDE; 104 const char* argv[]) OVERRIDE;
105 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 105 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
106 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 106 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
107 107
108 // ClientUserInterface interface. 108 // ClientUserInterface interface.
109 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 109 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
110 protocol::ErrorCode error) OVERRIDE; 110 protocol::ErrorCode error) OVERRIDE;
111 virtual void OnConnectionReady(bool ready) OVERRIDE;
111 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; 112 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE;
112 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE; 113 virtual protocol::CursorShapeStub* GetCursorShapeStub() OVERRIDE;
113 114
114 // protocol::ClipboardStub interface. 115 // protocol::ClipboardStub interface.
115 virtual void InjectClipboardEvent( 116 virtual void InjectClipboardEvent(
116 const protocol::ClipboardEvent& event) OVERRIDE; 117 const protocol::ClipboardEvent& event) OVERRIDE;
117 118
118 // protocol::CursorShapeStub interface. 119 // protocol::CursorShapeStub interface.
119 virtual void SetCursorShape( 120 virtual void SetCursorShape(
120 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; 121 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 211 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
211 212
212 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 213 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
213 214
214 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
215 }; 216 };
216 217
217 } // namespace remoting 218 } // namespace remoting
218 219
219 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/client_user_interface.h ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698