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

Side by Side Diff: webrtc/logging/rtc_event_log/rtc_event_log.h

Issue 3013523002: Move StreamConfig into its own file (Closed)
Patch Set: . Created 3 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
« no previous file with comments | « webrtc/logging/BUILD.gn ('k') | webrtc/logging/rtc_event_log/rtc_stream_config.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 11 #ifndef WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 12 #define WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
13 13
14 #include <memory> 14 #include <memory>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "webrtc/api/array_view.h" 18 #include "webrtc/api/array_view.h"
19 #include "webrtc/api/rtpparameters.h" 19 #include "webrtc/api/rtpparameters.h"
terelius 2017/09/08 13:16:29 I don't think this include is needed anymore.
eladalon 2017/09/08 13:19:57 It is - RtpExtension.
eladalon 2017/09/08 13:23:52 Oh, wrong file. Oops.
20 #include "webrtc/common_types.h" 20 #include "webrtc/common_types.h"
21 #include "webrtc/logging/rtc_event_log/rtc_stream_config.h"
21 #include "webrtc/rtc_base/platform_file.h" 22 #include "webrtc/rtc_base/platform_file.h"
22 23
23 namespace webrtc { 24 namespace webrtc {
24 25
25 // Forward declaration of storage class that is automatically generated from
26 // the protobuf file.
27 namespace rtclog { 26 namespace rtclog {
28 class EventStream; 27 class EventStream; // Storage class automatically generated from protobuf.
29
30 struct StreamConfig {
31 uint32_t local_ssrc = 0;
32 uint32_t remote_ssrc = 0;
33 uint32_t rtx_ssrc = 0;
34 std::string rsid;
35
36 bool remb = false;
37 std::vector<RtpExtension> rtp_extensions;
38
39 RtcpMode rtcp_mode = RtcpMode::kReducedSize;
40
41 struct Codec {
42 Codec(const std::string& payload_name,
43 int payload_type,
44 int rtx_payload_type)
45 : payload_name(payload_name),
46 payload_type(payload_type),
47 rtx_payload_type(rtx_payload_type) {}
48
49 std::string payload_name;
50 int payload_type;
51 int rtx_payload_type;
52 };
53 std::vector<Codec> codecs;
54 };
55
56 } // namespace rtclog 28 } // namespace rtclog
57 29
58 class Clock; 30 class Clock;
59 struct AudioEncoderRuntimeConfig; 31 struct AudioEncoderRuntimeConfig;
60 class RtpPacketReceived; 32 class RtpPacketReceived;
61 class RtpPacketToSend; 33 class RtpPacketToSend;
62 34
63 enum class MediaType; 35 enum class MediaType;
64 enum class BandwidthUsage; 36 enum class BandwidthUsage;
65 37
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 int min_probes, 203 int min_probes,
232 int min_bytes) override{}; 204 int min_bytes) override{};
233 void LogProbeResultSuccess(int id, int bitrate_bps) override{}; 205 void LogProbeResultSuccess(int id, int bitrate_bps) override{};
234 void LogProbeResultFailure(int id, 206 void LogProbeResultFailure(int id,
235 ProbeFailureReason failure_reason) override{}; 207 ProbeFailureReason failure_reason) override{};
236 }; 208 };
237 209
238 } // namespace webrtc 210 } // namespace webrtc
239 211
240 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_ 212 #endif // WEBRTC_LOGGING_RTC_EVENT_LOG_RTC_EVENT_LOG_H_
OLDNEW
« no previous file with comments | « webrtc/logging/BUILD.gn ('k') | webrtc/logging/rtc_event_log/rtc_stream_config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698