OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/remote_media_stream_impl.h" | 5 #include "content/renderer/media/remote_media_stream_impl.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
17 #include "base/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
18 #include "content/renderer/media/media_stream.h" | 18 #include "content/renderer/media/media_stream.h" |
19 #include "content/renderer/media/media_stream_track.h" | 19 #include "content/renderer/media/media_stream_track.h" |
20 #include "content/renderer/media/media_stream_video_track.h" | 20 #include "content/renderer/media/media_stream_video_track.h" |
21 #include "content/renderer/media/webrtc/media_stream_remote_audio_track.h" | 21 #include "content/renderer/media/webrtc/media_stream_remote_audio_track.h" |
22 #include "content/renderer/media/webrtc/media_stream_remote_video_source.h" | 22 #include "content/renderer/media/webrtc/media_stream_remote_video_source.h" |
23 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" | 23 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
24 #include "content/renderer/media/webrtc/track_observer.h" | 24 #include "content/renderer/media/webrtc/track_observer.h" |
25 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 25 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
26 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 26 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
27 #include "third_party/WebKit/public/platform/WebString.h" | 27 #include "third_party/WebKit/public/platform/WebString.h" |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 // Unregister all the audio track observers that were not used. | 424 // Unregister all the audio track observers that were not used. |
425 // We need to do this before destruction since the observers can't unregister | 425 // We need to do this before destruction since the observers can't unregister |
426 // from within the dtor due to a race. | 426 // from within the dtor due to a race. |
427 for (auto& track : *audio_tracks.get()) { | 427 for (auto& track : *audio_tracks.get()) { |
428 if (track.get()) | 428 if (track.get()) |
429 track->Unregister(); | 429 track->Unregister(); |
430 } | 430 } |
431 } | 431 } |
432 | 432 |
433 } // namespace content | 433 } // namespace content |
OLD | NEW |