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

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

Issue 2782563003: Replace Clock with timeutils in AudioEncoder. (Closed)
Patch Set: Fix for failing unittest. 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_AUDIO_NETWORK_ADAPTOR_ IMPL_H_ 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPTOR_ IMPL_H_
12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPTOR_ IMPL_H_ 12 #define WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPTOR_ IMPL_H_
13 13
14 #include <memory> 14 #include <memory>
15 15
16 #include "webrtc/base/constructormagic.h" 16 #include "webrtc/base/constructormagic.h"
17 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h" 17 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller.h"
18 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h " 18 #include "webrtc/modules/audio_coding/audio_network_adaptor/controller_manager.h "
19 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h" 19 #include "webrtc/modules/audio_coding/audio_network_adaptor/debug_dump_writer.h"
20 #include "webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.h" 20 #include "webrtc/modules/audio_coding/audio_network_adaptor/event_log_writer.h"
21 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ k_adaptor.h" 21 #include "webrtc/modules/audio_coding/audio_network_adaptor/include/audio_networ k_adaptor.h"
22 #include "webrtc/system_wrappers/include/clock.h"
23 22
24 namespace webrtc { 23 namespace webrtc {
25 24
26 class RtcEventLog; 25 class RtcEventLog;
27 26
28 class AudioNetworkAdaptorImpl final : public AudioNetworkAdaptor { 27 class AudioNetworkAdaptorImpl final : public AudioNetworkAdaptor {
29 public: 28 public:
30 struct Config { 29 struct Config {
31 Config(); 30 Config();
32 ~Config(); 31 ~Config();
33 RtcEventLog* event_log; 32 RtcEventLog* event_log;
34 const Clock* clock;
35 }; 33 };
36 34
37 AudioNetworkAdaptorImpl( 35 AudioNetworkAdaptorImpl(
38 const Config& config, 36 const Config& config,
39 std::unique_ptr<ControllerManager> controller_manager, 37 std::unique_ptr<ControllerManager> controller_manager,
40 std::unique_ptr<DebugDumpWriter> debug_dump_writer = nullptr); 38 std::unique_ptr<DebugDumpWriter> debug_dump_writer = nullptr);
41 39
42 ~AudioNetworkAdaptorImpl() override; 40 ~AudioNetworkAdaptorImpl() override;
43 41
44 void SetUplinkBandwidth(int uplink_bandwidth_bps) override; 42 void SetUplinkBandwidth(int uplink_bandwidth_bps) override;
(...skipping 29 matching lines...) Expand all
74 const std::unique_ptr<EventLogWriter> event_log_writer_; 72 const std::unique_ptr<EventLogWriter> event_log_writer_;
75 73
76 Controller::NetworkMetrics last_metrics_; 74 Controller::NetworkMetrics last_metrics_;
77 75
78 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl); 76 RTC_DISALLOW_COPY_AND_ASSIGN(AudioNetworkAdaptorImpl);
79 }; 77 };
80 78
81 } // namespace webrtc 79 } // namespace webrtc
82 80
83 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT OR_IMPL_H_ 81 #endif // WEBRTC_MODULES_AUDIO_CODING_AUDIO_NETWORK_ADAPTOR_AUDIO_NETWORK_ADAPT OR_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698