| 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 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 15 #include "base/threading/thread_checker.h" | 16 #include "base/threading/thread_checker.h" |
| 16 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 17 #include "chrome/browser/media/rtp_dump_type.h" | 18 #include "chrome/browser/media/rtp_dump_type.h" |
| 18 | 19 |
| 19 // This class is responsible for creating the compressed RTP header dump file: | 20 // This class is responsible for creating the compressed RTP header dump file: |
| 20 // - Adds the RTP headers to an in-memory buffer. | 21 // - Adds the RTP headers to an in-memory buffer. |
| 21 // - When the in-memory buffer is full, compresses it, and writes it to the | 22 // - When the in-memory buffer is full, compresses it, and writes it to the |
| 22 // disk. | 23 // disk. |
| 23 // - Notifies the caller when the on-disk file size reaches the max limit. | 24 // - Notifies the caller when the on-disk file size reaches the max limit. |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 scoped_ptr<FileThreadWorker> outgoing_file_thread_worker_; | 131 scoped_ptr<FileThreadWorker> outgoing_file_thread_worker_; |
| 131 | 132 |
| 132 base::ThreadChecker thread_checker_; | 133 base::ThreadChecker thread_checker_; |
| 133 | 134 |
| 134 base::WeakPtrFactory<WebRtcRtpDumpWriter> weak_ptr_factory_; | 135 base::WeakPtrFactory<WebRtcRtpDumpWriter> weak_ptr_factory_; |
| 135 | 136 |
| 136 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpWriter); | 137 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpWriter); |
| 137 }; | 138 }; |
| 138 | 139 |
| 139 #endif // CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ | 140 #endif // CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ |
| OLD | NEW |