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

Side by Side Diff: chrome/browser/media/webrtc_rtp_dump_writer.cc

Issue 322603003: Fix a crash in WebRtcRtpDumpHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/media/webrtc_rtp_dump_writer.h" 5 #include "chrome/browser/media/webrtc_rtp_dump_writer.h"
6 6
7 #include "base/big_endian.h" 7 #include "base/big_endian.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 if (incoming && context.type == RTP_DUMP_BOTH) { 440 if (incoming && context.type == RTP_DUMP_BOTH) {
441 FlushBuffer(false, 441 FlushBuffer(false,
442 true, 442 true,
443 base::Bind(&WebRtcRtpDumpWriter::OnDumpEnded, 443 base::Bind(&WebRtcRtpDumpWriter::OnDumpEnded,
444 weak_ptr_factory_.GetWeakPtr(), 444 weak_ptr_factory_.GetWeakPtr(),
445 context, 445 context,
446 false)); 446 false));
447 return; 447 return;
448 } 448 }
449 449
450 // This object might be deleted after running the callback.
450 context.callback.Run(context.incoming_succeeded, context.outgoing_succeeded); 451 context.callback.Run(context.incoming_succeeded, context.outgoing_succeeded);
451 } 452 }
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc_rtp_dump_handler_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698