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

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

Issue 2553413002: Pass event log to ANA. (Closed)
Patch Set: Rebased Created 3 years, 11 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 #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adapto r_impl.h" 11 #include "webrtc/modules/audio_coding/audio_network_adaptor/audio_network_adapto r_impl.h"
12 12
13 #include <utility> 13 #include <utility>
14 14
15 namespace webrtc { 15 namespace webrtc {
16 16
17 AudioNetworkAdaptorImpl::Config::Config() = default; 17 AudioNetworkAdaptorImpl::Config::Config()
18 : event_log(nullptr), clock(nullptr){};
18 19
19 AudioNetworkAdaptorImpl::Config::~Config() = default; 20 AudioNetworkAdaptorImpl::Config::~Config() = default;
20 21
21 AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl( 22 AudioNetworkAdaptorImpl::AudioNetworkAdaptorImpl(
22 const Config& config, 23 const Config& config,
23 std::unique_ptr<ControllerManager> controller_manager, 24 std::unique_ptr<ControllerManager> controller_manager,
24 std::unique_ptr<DebugDumpWriter> debug_dump_writer) 25 std::unique_ptr<DebugDumpWriter> debug_dump_writer)
25 : config_(config), 26 : config_(config),
26 controller_manager_(std::move(controller_manager)), 27 controller_manager_(std::move(controller_manager)),
27 debug_dump_writer_(std::move(debug_dump_writer)) { 28 debug_dump_writer_(std::move(debug_dump_writer)) {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 debug_dump_writer_.reset(nullptr); 84 debug_dump_writer_.reset(nullptr);
84 } 85 }
85 86
86 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() { 87 void AudioNetworkAdaptorImpl::DumpNetworkMetrics() {
87 if (debug_dump_writer_) 88 if (debug_dump_writer_)
88 debug_dump_writer_->DumpNetworkMetrics(last_metrics_, 89 debug_dump_writer_->DumpNetworkMetrics(last_metrics_,
89 config_.clock->TimeInMilliseconds()); 90 config_.clock->TimeInMilliseconds());
90 } 91 }
91 92
92 } // namespace webrtc 93 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698