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

Side by Side Diff: webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.h

Issue 2745473003: Resolve cyclic dependency between audio network adaptor and event log api (Closed)
Patch Set: Revert "Activated checks for rtc_event_log_api" Created 3 years, 8 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 /* 1 /*
2 * Copyright (c) 2016 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2016 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_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_
13 13
14 #include "webrtc/base/constructormagic.h" 14 #include "webrtc/base/constructormagic.h"
15 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ k_adaptor.h" 15 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ k_adaptor.h"
16 16
17 namespace webrtc { 17 namespace webrtc {
18 class RtcEventLog; 18 class RtcEventLog;
19 19
20 class EventLogWriter final { 20 class EventLogWriter final {
21 public: 21 public:
22 EventLogWriter(RtcEventLog* event_log, 22 EventLogWriter(RtcEventLog* event_log,
23 int min_bitrate_change_bps, 23 int min_bitrate_change_bps,
24 float min_bitrate_change_fraction, 24 float min_bitrate_change_fraction,
25 float min_packet_loss_change_fraction); 25 float min_packet_loss_change_fraction);
26 ~EventLogWriter(); 26 ~EventLogWriter();
27 void MaybeLogEncoderConfig( 27 void MaybeLogEncoderConfig(const AudioEncoderRuntimeConfig& config);
28 const AudioNetworkAdaptor::EncoderRuntimeConfig& config);
29 28
30 private: 29 private:
31 void LogEncoderConfig( 30 void LogEncoderConfig(const AudioEncoderRuntimeConfig& config);
32 const AudioNetworkAdaptor::EncoderRuntimeConfig& config);
33 31
34 RtcEventLog* const event_log_; 32 RtcEventLog* const event_log_;
35 const int min_bitrate_change_bps_; 33 const int min_bitrate_change_bps_;
36 const float min_bitrate_change_fraction_; 34 const float min_bitrate_change_fraction_;
37 const float min_packet_loss_change_fraction_; 35 const float min_packet_loss_change_fraction_;
38 AudioNetworkAdaptor::EncoderRuntimeConfig last_logged_config_; 36 AudioEncoderRuntimeConfig last_logged_config_;
39 RTC_DISALLOW_COPY_AND_ASSIGN(EventLogWriter); 37 RTC_DISALLOW_COPY_AND_ASSIGN(EventLogWriter);
40 }; 38 };
41 39
42 } // namespace webrtc 40 } // namespace webrtc
43 41
44 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_ 42 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_EVENT_LOG_WRITER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698