| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |