OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/public/browser/webrtc_callback_interface.h" |
| 6 |
| 7 #include "base/lazy_instance.h" |
| 8 #include "content/browser/media/webrtc/webrtc_callback_interface_impl.h" |
| 9 |
| 10 namespace content { |
| 11 |
| 12 namespace { |
| 13 |
| 14 static base::LazyInstance<WebRTCCallbackInterfaceImpl>::Leaky |
| 15 g_webrtc_callback_interface = LAZY_INSTANCE_INITIALIZER; |
| 16 |
| 17 } // namespace |
| 18 |
| 19 WebRTCCallbackInterface* WebRTCCallbackInterface::GetInstance() { |
| 20 return static_cast<WebRTCCallbackInterface*>( |
| 21 g_webrtc_callback_interface.Pointer()); |
| 22 } |
| 23 } // namespace content |
OLD | NEW |