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

Side by Side Diff: remoting/host/session_manager.h

Issue 2963003: Changing UpdateStreamPacket protobuf definition for chromoting (Closed)
Patch Set: fixed comments Created 10 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
« no previous file with comments | « remoting/host/mock_objects.h ('k') | remoting/host/session_manager.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) 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 #ifndef REMOTING_HOST_RECORD_SESSION_H_ 5 #ifndef REMOTING_HOST_RECORD_SESSION_H_
6 #define REMOTING_HOST_RECORD_SESSION_H_ 6 #define REMOTING_HOST_RECORD_SESSION_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 124
125 void DoStartRateControl(); 125 void DoStartRateControl();
126 void DoPauseRateControl(); 126 void DoPauseRateControl();
127 127
128 // Helper method to schedule next rate regulation task. 128 // Helper method to schedule next rate regulation task.
129 void ScheduleNextRateControl(); 129 void ScheduleNextRateControl();
130 130
131 void DoRateControl(); 131 void DoRateControl();
132 132
133 // DoSendUpdate takes ownership of header and is responsible for deleting it. 133 // DoSendUpdate takes ownership of header and is responsible for deleting it.
134 void DoSendUpdate(const UpdateStreamPacketHeader* header, 134 void DoSendUpdate(HostMessage* message,
135 const scoped_refptr<media::DataBuffer> data,
136 Encoder::EncodingState state); 135 Encoder::EncodingState state);
137 void DoSendInit(scoped_refptr<ClientConnection> client, 136 void DoSendInit(scoped_refptr<ClientConnection> client,
138 int width, int height); 137 int width, int height);
139 138
140 void DoAddClient(scoped_refptr<ClientConnection> client); 139 void DoAddClient(scoped_refptr<ClientConnection> client);
141 void DoRemoveClient(scoped_refptr<ClientConnection> client); 140 void DoRemoveClient(scoped_refptr<ClientConnection> client);
142 void DoRemoveAllClients(); 141 void DoRemoveAllClients();
143 142
144 // Encoder thread ----------------------------------------------------------- 143 // Encoder thread -----------------------------------------------------------
145 144
146 void DoEncode(scoped_refptr<Capturer::CaptureData> capture_data); 145 void DoEncode(scoped_refptr<Capturer::CaptureData> capture_data);
147 146
148 // EncodeDataAvailableTask takes ownership of header and is responsible for 147 // EncodeDataAvailableTask takes ownership of header and is responsible for
149 // deleting it. 148 // deleting it.
150 void EncodeDataAvailableTask(const UpdateStreamPacketHeader *header, 149 void EncodeDataAvailableTask(HostMessage* message,
151 const scoped_refptr<media::DataBuffer>& data,
152 Encoder::EncodingState state); 150 Encoder::EncodingState state);
153 151
154 // Message loops used by this class. 152 // Message loops used by this class.
155 MessageLoop* capture_loop_; 153 MessageLoop* capture_loop_;
156 MessageLoop* encode_loop_; 154 MessageLoop* encode_loop_;
157 MessageLoop* network_loop_; 155 MessageLoop* network_loop_;
158 156
159 // Reference to the capturer. This member is always accessed on the capture 157 // Reference to the capturer. This member is always accessed on the capture
160 // thread. 158 // thread.
161 scoped_ptr<Capturer> capturer_; 159 scoped_ptr<Capturer> capturer_;
(...skipping 22 matching lines...) Expand all
184 182
185 // The following member is accessed on the network thread. 183 // The following member is accessed on the network thread.
186 bool rate_control_started_; 184 bool rate_control_started_;
187 185
188 DISALLOW_COPY_AND_ASSIGN(SessionManager); 186 DISALLOW_COPY_AND_ASSIGN(SessionManager);
189 }; 187 };
190 188
191 } // namespace remoting 189 } // namespace remoting
192 190
193 #endif // REMOTING_HOST_RECORD_SESSION_H_ 191 #endif // REMOTING_HOST_RECORD_SESSION_H_
OLDNEW
« no previous file with comments | « remoting/host/mock_objects.h ('k') | remoting/host/session_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698