Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Side by Side Diff: chrome/browser/media/webrtc/webrtc_rtp_dump_writer.h

Issue 2307083002: Cleanup: move WebRTC related files from chrome/browser/media to chrome/browser/media/webrtc/ (Closed)
Patch Set: Removed file wrongly resuscitated during rebase Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/media/webrtc/webrtc_rtp_dump_handler_unittest.cc ('k') | chrome/browser/media/webrtc/webrtc_rtp_dump_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698