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_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_RTP_DUMP_HANDLER_H_ |
6 #define CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_HANDLER_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_RTP_DUMP_HANDLER_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 "chrome/browser/media/rtp_dump_type.h" | 17 #include "chrome/browser/media/webrtc/rtp_dump_type.h" |
18 | 18 |
19 class WebRtcRtpDumpWriter; | 19 class WebRtcRtpDumpWriter; |
20 | 20 |
21 // WebRtcRtpDumpHandler handles operations regarding the WebRTC RTP dump: | 21 // WebRtcRtpDumpHandler handles operations regarding the WebRTC RTP dump: |
22 // - Starts or stops the RTP dumping on behalf of the client. | 22 // - Starts or stops the RTP dumping on behalf of the client. |
23 // - Stops the RTP dumping when the max dump file size is reached. | 23 // - Stops the RTP dumping when the max dump file size is reached. |
24 // - Writes the dump file. | 24 // - Writes the dump file. |
25 // - Provides the dump file to the client code to be uploaded when | 25 // - Provides the dump file to the client code to be uploaded when |
26 // ReleaseRtpDump is called. | 26 // ReleaseRtpDump is called. |
27 // - Cleans up the dump file if not transferred to the client before the object | 27 // - Cleans up the dump file if not transferred to the client before the object |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 State outgoing_state_; | 126 State outgoing_state_; |
127 | 127 |
128 // The object used to create and write the dump file. | 128 // The object used to create and write the dump file. |
129 std::unique_ptr<WebRtcRtpDumpWriter> dump_writer_; | 129 std::unique_ptr<WebRtcRtpDumpWriter> dump_writer_; |
130 | 130 |
131 base::WeakPtrFactory<WebRtcRtpDumpHandler> weak_ptr_factory_; | 131 base::WeakPtrFactory<WebRtcRtpDumpHandler> weak_ptr_factory_; |
132 | 132 |
133 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpHandler); | 133 DISALLOW_COPY_AND_ASSIGN(WebRtcRtpDumpHandler); |
134 }; | 134 }; |
135 | 135 |
136 #endif // CHROME_BROWSER_MEDIA_WEBRTC_RTP_DUMP_HANDLER_H_ | 136 #endif // CHROME_BROWSER_MEDIA_WEBRTC_WEBRTC_RTP_DUMP_HANDLER_H_ |
OLD | NEW |