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

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

Issue 7355011: Modify Chromoting logging to hook into base logging. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add timestamp Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 13 matching lines...) Expand all
24 24
25 namespace remoting { 25 namespace remoting {
26 26
27 namespace protocol { 27 namespace protocol {
28 class LocalLoginStatus; 28 class LocalLoginStatus;
29 class NotifyResolutionRequest; 29 class NotifyResolutionRequest;
30 } // namespace protocol 30 } // namespace protocol
31 31
32 class ClientContext; 32 class ClientContext;
33 class InputHandler; 33 class InputHandler;
34 class Logger;
35 class RectangleUpdateDecoder; 34 class RectangleUpdateDecoder;
36 35
37 // TODO(sergeyu): Move VideoStub implementation to RectangleUpdateDecoder. 36 // TODO(sergeyu): Move VideoStub implementation to RectangleUpdateDecoder.
38 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback, 37 class ChromotingClient : public protocol::ConnectionToHost::HostEventCallback,
39 public protocol::ClientStub, 38 public protocol::ClientStub,
40 public protocol::VideoStub { 39 public protocol::VideoStub {
41 public: 40 public:
42 // Objects passed in are not owned by this class. 41 // Objects passed in are not owned by this class.
43 ChromotingClient(const ClientConfig& config, 42 ChromotingClient(const ClientConfig& config,
44 ClientContext* context, 43 ClientContext* context,
45 protocol::ConnectionToHost* connection, 44 protocol::ConnectionToHost* connection,
46 ChromotingView* view, 45 ChromotingView* view,
47 RectangleUpdateDecoder* rectangle_decoder, 46 RectangleUpdateDecoder* rectangle_decoder,
48 InputHandler* input_handler, 47 InputHandler* input_handler,
49 Logger* logger,
50 Task* client_done); 48 Task* client_done);
51 virtual ~ChromotingClient(); 49 virtual ~ChromotingClient();
52 50
53 void Start(scoped_refptr<XmppProxy> xmpp_proxy); 51 void Start(scoped_refptr<XmppProxy> xmpp_proxy);
54 void Stop(const base::Closure& shutdown_task); 52 void Stop(const base::Closure& shutdown_task);
55 void ClientDone(); 53 void ClientDone();
56 54
57 // Return the stats recorded by this client. 55 // Return the stats recorded by this client.
58 ChromotingStats* GetStats(); 56 ChromotingStats* GetStats();
59 57
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 108
111 void OnDisconnected(const base::Closure& shutdown_task); 109 void OnDisconnected(const base::Closure& shutdown_task);
112 110
113 // The following are not owned by this class. 111 // The following are not owned by this class.
114 ClientConfig config_; 112 ClientConfig config_;
115 ClientContext* context_; 113 ClientContext* context_;
116 protocol::ConnectionToHost* connection_; 114 protocol::ConnectionToHost* connection_;
117 ChromotingView* view_; 115 ChromotingView* view_;
118 RectangleUpdateDecoder* rectangle_decoder_; 116 RectangleUpdateDecoder* rectangle_decoder_;
119 InputHandler* input_handler_; 117 InputHandler* input_handler_;
120 Logger* logger_;
121 118
122 // If non-NULL, this is called when the client is done. 119 // If non-NULL, this is called when the client is done.
123 Task* client_done_; 120 Task* client_done_;
124 121
125 ConnectionState state_; 122 ConnectionState state_;
126 123
127 // Contains all video packets that have been received, but have not yet been 124 // Contains all video packets that have been received, but have not yet been
128 // processed. 125 // processed.
129 // 126 //
130 // Used to serialize sending of messages to the client. 127 // Used to serialize sending of messages to the client.
(...skipping 10 matching lines...) Expand all
141 int64 last_sequence_number_; 138 int64 last_sequence_number_;
142 139
143 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 140 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
144 }; 141 };
145 142
146 } // namespace remoting 143 } // namespace remoting
147 144
148 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); 145 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient);
149 146
150 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 147 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698