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

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
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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 virtual void DidChangeView(const pp::Rect& position, 95 virtual void DidChangeView(const pp::Rect& position,
96 const pp::Rect& clip) OVERRIDE; 96 const pp::Rect& clip) OVERRIDE;
97 virtual bool Init(uint32_t argc, const char* argn[], 97 virtual bool Init(uint32_t argc, const char* argn[],
98 const char* argv[]) OVERRIDE; 98 const char* argv[]) OVERRIDE;
99 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 99 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
100 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 100 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
101 101
102 // ClientUserInterface interface. 102 // ClientUserInterface interface.
103 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 103 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
104 protocol::ErrorCode error) OVERRIDE; 104 protocol::ErrorCode error) OVERRIDE;
105 virtual void OnConnectionReady(bool ready) OVERRIDE;
105 virtual void ProcessClipboardEvent( 106 virtual void ProcessClipboardEvent(
106 const protocol::ClipboardEvent& event) OVERRIDE; 107 const protocol::ClipboardEvent& event) OVERRIDE;
107 virtual void SetCursorShape( 108 virtual void SetCursorShape(
108 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE; 109 const protocol::CursorShapeInfo& cursor_shape) OVERRIDE;
109 110
110 // Called by PepperView. 111 // Called by PepperView.
111 void SetDesktopSize(int width, int height); 112 void SetDesktopSize(int width, int height);
112 void OnFirstFrameReceived(); 113 void OnFirstFrameReceived();
113 114
114 // Message handlers for messages that come from JavaScript. Called 115 // Message handlers for messages that come from JavaScript. Called
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 198 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
198 199
199 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 200 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
200 201
201 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 202 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
202 }; 203 };
203 204
204 } // namespace remoting 205 } // namespace remoting
205 206
206 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 207 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698