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_WEBRTC_RTP_DUMP_WRITER_H_ |
6 #define CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_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 <memory> | 11 #include <memory> |
12 | 12 |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/threading/thread_checker.h" | 17 #include "base/threading/thread_checker.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "chrome/browser/media/rtp_dump_type.h" | 19 #include "chrome/browser/media/webrtc/rtp_dump_type.h" |
20 | 20 |
21 // This class is responsible for creating the compressed RTP header dump file: | 21 // This class is responsible for creating the compressed RTP header dump file: |
22 // - Adds the RTP headers to an in-memory buffer. | 22 // - Adds the RTP headers to an in-memory buffer. |
23 // - When the in-memory buffer is full, compresses it, and writes it to the | 23 // - When the in-memory buffer is full, compresses it, and writes it to the |
24 // disk. | 24 // disk. |
25 // - Notifies the caller when the on-disk file size reaches the max limit. | 25 // - Notifies the caller when the on-disk file size reaches the max limit. |
26 // - The uncompressed dump follows the standard RTPPlay format | 26 // - The uncompressed dump follows the standard RTPPlay format |
27 // (http://www.cs.columbia.edu/irt/software/rtptools/). | 27 // (http://www.cs.columbia.edu/irt/software/rtptools/). |
28 // - The caller is always responsible for cleaning up the dump file in all | 28 // - The caller is always responsible for cleaning up the dump file in all |
29 // cases. | 29 // cases. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 std::unique_ptr<FileThreadWorker> incoming_file_thread_worker_; | 131 std::unique_ptr<FileThreadWorker> incoming_file_thread_worker_; |
132 std::unique_ptr<FileThreadWorker> outgoing_file_thread_worker_; | 132 std::unique_ptr<FileThreadWorker> outgoing_file_thread_worker_; |
133 | 133 |
134 base::ThreadChecker thread_checker_; | 134 base::ThreadChecker thread_checker_; |
135 | 135 |
136 base::WeakPtrFactory<WebRtcRtpDumpWriter> weak_ptr_factory_; | 136 base::WeakPtrFactory<WebRtcRtpDumpWriter> weak_ptr_factory_; |
137 | 137 |
138 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpWriter); | 138 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpWriter); |
139 }; | 139 }; |
140 | 140 |
141 #endif // CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_WRITER_H_ | 141 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_RTP_DUMP_WRITER_H_ |
OLD | NEW |