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

Side by Side Diff: remoting/client/chromoting_client.h

Issue 9567033: Cleanup error handling in the client plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 // 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 void Start(scoped_refptr<XmppProxy> xmpp_proxy); 45 void Start(scoped_refptr<XmppProxy> xmpp_proxy);
46 void Stop(const base::Closure& shutdown_task); 46 void Stop(const base::Closure& shutdown_task);
47 void ClientDone(); 47 void ClientDone();
48 48
49 // Return the stats recorded by this client. 49 // Return the stats recorded by this client.
50 ChromotingStats* GetStats(); 50 ChromotingStats* GetStats();
51 51
52 // ConnectionToHost::HostEventCallback implementation. 52 // ConnectionToHost::HostEventCallback implementation.
53 virtual void OnConnectionState( 53 virtual void OnConnectionState(
54 protocol::ConnectionToHost::State state, 54 protocol::ConnectionToHost::State state,
55 protocol::ConnectionToHost::Error error) OVERRIDE; 55 protocol::ErrorCode error) OVERRIDE;
56 56
57 // VideoStub implementation. 57 // VideoStub implementation.
58 virtual void ProcessVideoPacket(const VideoPacket* packet, 58 virtual void ProcessVideoPacket(const VideoPacket* packet,
59 const base::Closure& done) OVERRIDE; 59 const base::Closure& done) OVERRIDE;
60 virtual int GetPendingPackets() OVERRIDE; 60 virtual int GetPendingPackets() OVERRIDE;
61 61
62 private: 62 private:
63 struct QueuedVideoPacket { 63 struct QueuedVideoPacket {
64 QueuedVideoPacket(const VideoPacket* packet, const base::Closure& done); 64 QueuedVideoPacket(const VideoPacket* packet, const base::Closure& done);
65 ~QueuedVideoPacket(); 65 ~QueuedVideoPacket();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 int64 last_sequence_number_; 110 int64 last_sequence_number_;
111 111
112 ScopedThreadProxy thread_proxy_; 112 ScopedThreadProxy thread_proxy_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 114 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
115 }; 115 };
116 116
117 } // namespace remoting 117 } // namespace remoting
118 118
119 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 119 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/chromoting_client.cc » ('j') | remoting/protocol/connection_to_host.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698