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

Side by Side Diff: remoting/client/chromoting_client.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 | « no previous file | remoting/client/chromoting_client.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 // 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 <list> 10 #include <list>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 OVERRIDE; 66 OVERRIDE;
67 67
68 // CursorShapeStub implementation for receiving cursor shape updates. 68 // CursorShapeStub implementation for receiving cursor shape updates.
69 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) 69 virtual void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape)
70 OVERRIDE; 70 OVERRIDE;
71 71
72 // ConnectionToHost::HostEventCallback implementation. 72 // ConnectionToHost::HostEventCallback implementation.
73 virtual void OnConnectionState( 73 virtual void OnConnectionState(
74 protocol::ConnectionToHost::State state, 74 protocol::ConnectionToHost::State state,
75 protocol::ErrorCode error) OVERRIDE; 75 protocol::ErrorCode error) OVERRIDE;
76 virtual void OnConnectionReady(bool ready) OVERRIDE;
76 77
77 // VideoStub implementation. 78 // VideoStub implementation.
78 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, 79 virtual void ProcessVideoPacket(scoped_ptr<VideoPacket> packet,
79 const base::Closure& done) OVERRIDE; 80 const base::Closure& done) OVERRIDE;
80 virtual int GetPendingVideoPackets() OVERRIDE; 81 virtual int GetPendingVideoPackets() OVERRIDE;
81 82
82 // AudioStub implementation. 83 // AudioStub implementation.
83 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet, 84 virtual void ProcessAudioPacket(scoped_ptr<AudioPacket> packet,
84 const base::Closure& done) OVERRIDE; 85 const base::Closure& done) OVERRIDE;
85 86
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // WeakPtr used to avoid tasks accessing the client after it is deleted. 137 // WeakPtr used to avoid tasks accessing the client after it is deleted.
137 base::WeakPtrFactory<ChromotingClient> weak_factory_; 138 base::WeakPtrFactory<ChromotingClient> weak_factory_;
138 base::WeakPtr<ChromotingClient> weak_ptr_; 139 base::WeakPtr<ChromotingClient> weak_ptr_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 141 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
141 }; 142 };
142 143
143 } // namespace remoting 144 } // namespace remoting
144 145
145 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 146 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698