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

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

Issue 4017002: HostMessageDispatcher to parse control messages (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged again Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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>
11
10 #include "base/task.h" 12 #include "base/task.h"
11 #include "remoting/client/host_connection.h" 13 #include "remoting/client/host_connection.h"
12 #include "remoting/client/client_config.h" 14 #include "remoting/client/client_config.h"
13 #include "remoting/client/chromoting_view.h" 15 #include "remoting/client/chromoting_view.h"
14 #include "remoting/protocol/messages_decoder.h"
15 16
16 class MessageLoop; 17 class MessageLoop;
17 18
18 namespace remoting { 19 namespace remoting {
19 20
20 class ChromotingHostMessage; 21 class ChromotingHostMessage;
21 class ClientContext; 22 class ClientContext;
22 class InitClientMessage; 23 class InitClientMessage;
23 class InputHandler; 24 class InputHandler;
24 class RectangleUpdateDecoder; 25 class RectangleUpdateDecoder;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 83
83 // If non-NULL, this is called when the client is done. 84 // If non-NULL, this is called when the client is done.
84 CancelableTask* client_done_; 85 CancelableTask* client_done_;
85 86
86 ConnectionState state_; 87 ConnectionState state_;
87 88
88 // Contains all messages that have been received, but have not yet been 89 // Contains all messages that have been received, but have not yet been
89 // processed. 90 // processed.
90 // 91 //
91 // Used to serialize sending of messages to the client. 92 // Used to serialize sending of messages to the client.
92 HostMessageList received_messages_; 93 std::list<ChromotingHostMessage*> received_messages_;
93 94
94 // True if a message is being processed. Can be used to determine if it is 95 // True if a message is being processed. Can be used to determine if it is
95 // safe to dispatch another message. 96 // safe to dispatch another message.
96 bool message_being_processed_; 97 bool message_being_processed_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 99 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
99 }; 100 };
100 101
101 } // namespace remoting 102 } // namespace remoting
102 103
103 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); 104 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient);
104 105
105 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H 106 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H
OLDNEW
« no previous file with comments | « remoting/base/multiple_array_input_stream_unittest.cc ('k') | remoting/client/chromoting_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698