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

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

Issue 7633009: Use MessageLoopProxy for network message loop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 4 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) 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 private: 75 private:
76 struct QueuedVideoPacket { 76 struct QueuedVideoPacket {
77 QueuedVideoPacket(const VideoPacket* packet, Task* done) 77 QueuedVideoPacket(const VideoPacket* packet, Task* done)
78 : packet(packet), done(done) { 78 : packet(packet), done(done) {
79 } 79 }
80 const VideoPacket* packet; 80 const VideoPacket* packet;
81 Task* done; 81 Task* done;
82 }; 82 };
83 83
84 MessageLoop* message_loop(); 84 base::MessageLoopProxy* message_loop();
85 85
86 // Initializes connection. 86 // Initializes connection.
87 void Initialize(); 87 void Initialize();
88 88
89 // Convenience method for modifying the state on this object's message loop. 89 // Convenience method for modifying the state on this object's message loop.
90 void SetConnectionState(ConnectionState s); 90 void SetConnectionState(ConnectionState s);
91 91
92 // If a packet is not being processed, dispatches a single message from the 92 // If a packet is not being processed, dispatches a single message from the
93 // |received_packets_| queue. 93 // |received_packets_| queue.
94 void DispatchPacket(); 94 void DispatchPacket();
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 int64 last_sequence_number_; 130 int64 last_sequence_number_;
131 131
132 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); 132 DISALLOW_COPY_AND_ASSIGN(ChromotingClient);
133 }; 133 };
134 134
135 } // namespace remoting 135 } // namespace remoting
136 136
137 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient); 137 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::ChromotingClient);
138 138
139 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ 139 #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