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

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

Issue 8495024: Access ChromotingHost::clients_ only on network thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 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
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/screen_recorder.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 #ifndef REMOTING_HOST_SCREEN_RECORDER_H_ 5 #ifndef REMOTING_HOST_SCREEN_RECORDER_H_
6 #define REMOTING_HOST_SCREEN_RECORDER_H_ 6 #define REMOTING_HOST_SCREEN_RECORDER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // Network thread ----------------------------------------------------------- 126 // Network thread -----------------------------------------------------------
127 127
128 // DoSendVideoPacket takes ownership of the |packet| and is responsible 128 // DoSendVideoPacket takes ownership of the |packet| and is responsible
129 // for deleting it. 129 // for deleting it.
130 void DoSendVideoPacket(VideoPacket* packet); 130 void DoSendVideoPacket(VideoPacket* packet);
131 131
132 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection, 132 void DoSendInit(scoped_refptr<protocol::ConnectionToClient> connection,
133 int width, int height); 133 int width, int height);
134 134
135 void DoAddConnection(scoped_refptr<protocol::ConnectionToClient> connection);
136 void DoRemoveClient(scoped_refptr<protocol::ConnectionToClient> connection);
137 void DoRemoveAllClients();
138
139 // Signal network thread to cease activities. 135 // Signal network thread to cease activities.
140 void DoStopOnNetworkThread(const base::Closure& done_task); 136 void DoStopOnNetworkThread(const base::Closure& done_task);
141 137
142 // Callback for the last packet in one update. Deletes |packet| and 138 // Callback for the last packet in one update. Deletes |packet| and
143 // schedules next screen capture. 139 // schedules next screen capture.
144 void FrameSentCallback(VideoPacket* packet); 140 void FrameSentCallback(VideoPacket* packet);
145 141
146 // Encoder thread ----------------------------------------------------------- 142 // Encoder thread -----------------------------------------------------------
147 143
148 void DoEncode(scoped_refptr<CaptureData> capture_data); 144 void DoEncode(scoped_refptr<CaptureData> capture_data);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 202
207 // An object to schedule capturing. 203 // An object to schedule capturing.
208 CaptureScheduler scheduler_; 204 CaptureScheduler scheduler_;
209 205
210 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder); 206 DISALLOW_COPY_AND_ASSIGN(ScreenRecorder);
211 }; 207 };
212 208
213 } // namespace remoting 209 } // namespace remoting
214 210
215 #endif // REMOTING_HOST_SCREEN_RECORDER_H_ 211 #endif // REMOTING_HOST_SCREEN_RECORDER_H_
OLDNEW
« no previous file with comments | « remoting/host/plugin/host_script_object.cc ('k') | remoting/host/screen_recorder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698