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

Unified Diff: content/public/browser/webrtc_callback_interface.cc

Issue 1855193002: Move the call to enable the WebRTC event log from PeerConnectionFactory to PeerConnection. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introduced WebRTCCallbackInterface. Created 4 years, 7 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: content/public/browser/webrtc_callback_interface.cc
diff --git a/content/public/browser/webrtc_callback_interface.cc b/content/public/browser/webrtc_callback_interface.cc
new file mode 100644
index 0000000000000000000000000000000000000000..2ecfe43bbd0bb71fab4645c05af290f9f00bdb4c
--- /dev/null
+++ b/content/public/browser/webrtc_callback_interface.cc
@@ -0,0 +1,23 @@
+// Copyright (c) 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/public/browser/webrtc_callback_interface.h"
+
+#include "base/lazy_instance.h"
+#include "content/browser/media/webrtc/webrtc_callback_interface_impl.h"
+
+namespace content {
+
+namespace {
+
+static base::LazyInstance<WebRTCCallbackInterfaceImpl>::Leaky
+ g_webrtc_callback_interface = LAZY_INSTANCE_INITIALIZER;
+
+} // namespace
+
+WebRTCCallbackInterface* WebRTCCallbackInterface::GetInstance() {
+ return static_cast<WebRTCCallbackInterface*>(
+ g_webrtc_callback_interface.Pointer());
+}
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698