| 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/files/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" |
| 11 #include "third_party/zlib/zlib.h" | 11 #include "third_party/zlib/zlib.h" |
| 12 | 12 |
| 13 using content::BrowserThread; | 13 using content::BrowserThread; |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| 16 | 16 |
| 17 static const size_t kMinimumGzipOutputBufferSize = 256; // In bytes. | 17 static const size_t kMinimumGzipOutputBufferSize = 256; // In bytes. |
| 18 | 18 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // This object might be deleted after running the callback. |
| 451 context.callback.Run(context.incoming_succeeded, context.outgoing_succeeded); | 451 context.callback.Run(context.incoming_succeeded, context.outgoing_succeeded); |
| 452 } | 452 } |
| OLD | NEW |