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

Unified Diff: webrtc/modules/audio_processing/aec_dumper/no_pb_aec_dumper.cc

Issue 2778783002: AecDump interface (Closed)
Patch Set: Implemented most of Karl's suggestions. Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/audio_processing/aec_dumper/no_pb_aec_dumper.cc
diff --git a/webrtc/modules/audio_processing/aec_dumper/no_pb_aec_dumper.cc b/webrtc/modules/audio_processing/aec_dumper/no_pb_aec_dumper.cc
new file mode 100644
index 0000000000000000000000000000000000000000..40ec41a1abae5c6fe01f695ac724bc5764c24cf1
--- /dev/null
+++ b/webrtc/modules/audio_processing/aec_dumper/no_pb_aec_dumper.cc
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
+ *
+ * Use of this source code is governed by a BSD-style license
+ * that can be found in the LICENSE file in the root of the source
+ * tree. An additional intellectual property rights grant can be found
+ * in the file PATENTS. All contributing project authors may
+ * be found in the AUTHORS file in the root of the source tree.
+ */
+
+#include "webrtc/modules/audio_processing/aec_dumper/aec_dumper.h"
peah-webrtc 2017/03/31 07:24:43 As I see it, there are two alternatives to include
aleloi 2017/04/06 15:46:11 I would almost always prefer virtual functions to
+
+#include "webrtc/modules/audio_processing/aec_dumper/null_aec_dumper.h"
+
+namespace webrtc {
+
+std::unique_ptr<AecDumper> AecDumper::Create(std::string file_name,
+ int64_t max_log_size_bytes,
+ rtc::TaskQueue* worker_queue) {
+ return AecDumper::CreateNullDumper();
+}
+
+std::unique_ptr<AecDumper> AecDumper::Create(FILE* handle,
+ int64_t max_log_size_bytes,
+ rtc::TaskQueue* worker_queue) {
+ return AecDumper::CreateNullDumper();
+}
+} // namespace webrtc

Powered by Google App Engine
This is Rietveld 408576698