OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/media/peer_connection_handler_base.h" | 5 #include "content/renderer/media/peer_connection_handler_base.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "content/renderer/media/media_stream_dependency_factory.h" | 9 #include "content/renderer/media/media_stream_dependency_factory.h" |
10 #include "content/renderer/media/media_stream_extra_data.h" | 10 #include "content/renderer/media/media_stream_extra_data.h" |
11 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 11 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
12 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 12 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
14 #include "third_party/WebKit/public/platform/WebString.h" | 14 #include "third_party/WebKit/public/platform/WebString.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 // TODO(hta): Unify implementations of these functions from MediaStreamCenter | 18 // TODO(hta): Unify implementations of these functions from MediaStreamCenter |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 return native_stream->FindAudioTrack(track_id); | 64 return native_stream->FindAudioTrack(track_id); |
65 } | 65 } |
66 if (track.source().type() == WebKit::WebMediaStreamSource::TypeVideo) { | 66 if (track.source().type() == WebKit::WebMediaStreamSource::TypeVideo) { |
67 return native_stream->FindVideoTrack(track_id); | 67 return native_stream->FindVideoTrack(track_id); |
68 } | 68 } |
69 NOTIMPLEMENTED(); // We have an unknown type of media stream track. | 69 NOTIMPLEMENTED(); // We have an unknown type of media stream track. |
70 return NULL; | 70 return NULL; |
71 } | 71 } |
72 | 72 |
73 } // namespace content | 73 } // namespace content |
OLD | NEW |