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

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

Issue 6266010: Fix crashes in ChromotingHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comments Created 9 years, 11 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 | « remoting/host/screen_recorder.h ('k') | remoting/host/screen_recorder_unittest.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 #include "remoting/host/screen_recorder.h" 5 #include "remoting/host/screen_recorder.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 void ScreenRecorder::RemoveAllConnections() { 96 void ScreenRecorder::RemoveAllConnections() {
97 network_loop_->PostTask( 97 network_loop_->PostTask(
98 FROM_HERE, 98 FROM_HERE,
99 NewTracedMethod(this, &ScreenRecorder::DoRemoveAllClients)); 99 NewTracedMethod(this, &ScreenRecorder::DoRemoveAllClients));
100 } 100 }
101 101
102 // Private accessors ----------------------------------------------------------- 102 // Private accessors -----------------------------------------------------------
103 103
104 Capturer* ScreenRecorder::capturer() { 104 Capturer* ScreenRecorder::capturer() {
105 DCHECK_EQ(capture_loop_, MessageLoop::current()); 105 DCHECK_EQ(capture_loop_, MessageLoop::current());
106 DCHECK(capturer_.get()); 106 DCHECK(capturer_);
107 return capturer_.get(); 107 return capturer_;
108 } 108 }
109 109
110 Encoder* ScreenRecorder::encoder() { 110 Encoder* ScreenRecorder::encoder() {
111 DCHECK_EQ(encode_loop_, MessageLoop::current()); 111 DCHECK_EQ(encode_loop_, MessageLoop::current());
112 DCHECK(encoder_.get()); 112 DCHECK(encoder_.get());
113 return encoder_.get(); 113 return encoder_.get();
114 } 114 }
115 115
116 // Capturer thread ------------------------------------------------------------- 116 // Capturer thread -------------------------------------------------------------
117 117
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 364
365 void ScreenRecorder::EncodedDataAvailableCallback(VideoPacket* packet) { 365 void ScreenRecorder::EncodedDataAvailableCallback(VideoPacket* packet) {
366 DCHECK_EQ(encode_loop_, MessageLoop::current()); 366 DCHECK_EQ(encode_loop_, MessageLoop::current());
367 367
368 network_loop_->PostTask( 368 network_loop_->PostTask(
369 FROM_HERE, 369 FROM_HERE,
370 NewTracedMethod(this, &ScreenRecorder::DoSendVideoPacket, packet)); 370 NewTracedMethod(this, &ScreenRecorder::DoSendVideoPacket, packet));
371 } 371 }
372 372
373 } // namespace remoting 373 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/screen_recorder.h ('k') | remoting/host/screen_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698