Upstreaming browser/ui/uikit_ui_util from iOS.
[chromium-blink-merge.git] / content / renderer / media / media_stream_track.cc
blob70ebca194cc27d80e6016dc4eece417e3746b99b
1 // Copyright 2014 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.
5 #include "content/renderer/media/media_stream_track.h"
7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h"
11 namespace content {
13 // static
14 MediaStreamTrack* MediaStreamTrack::GetTrack(
15 const blink::WebMediaStreamTrack& track) {
16 if (track.isNull())
17 return NULL;
18 return static_cast<MediaStreamTrack*>(track.extraData());
21 MediaStreamTrack::MediaStreamTrack(bool is_local_track)
22 : is_local_track_(is_local_track) {
25 MediaStreamTrack::~MediaStreamTrack() {
28 webrtc::AudioTrackInterface* MediaStreamTrack::GetAudioAdapter() {
29 NOTREACHED();
30 return nullptr;
33 } // namespace content