| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/android/media_source_delegate.h" | 5 #include "content/renderer/media/android/media_source_delegate.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/callback_helpers.h" | 12 #include "base/callback_helpers.h" |
| 13 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
| 14 #include "base/thread_task_runner_handle.h" | 14 #include "base/thread_task_runner_handle.h" |
| 15 #include "content/renderer/media/android/renderer_demuxer_android.h" | 15 #include "content/renderer/media/android/renderer_demuxer_android.h" |
| 16 #include "media/base/android/demuxer_stream_player_params.h" | 16 #include "media/base/android/demuxer_stream_player_params.h" |
| 17 #include "media/base/bind_to_current_loop.h" | 17 #include "media/base/bind_to_current_loop.h" |
| 18 #include "media/base/demuxer_stream.h" | 18 #include "media/base/demuxer_stream.h" |
| 19 #include "media/base/media_log.h" | 19 #include "media/base/media_log.h" |
| 20 #include "media/base/timestamp_constants.h" | 20 #include "media/base/timestamp_constants.h" |
| 21 #include "media/blink/webmediaplayer_util.h" | 21 #include "media/blink/webmediaplayer_util.h" |
| 22 #include "media/blink/webmediasource_impl.h" | 22 #include "media/blink/webmediasource_impl.h" |
| 23 #include "media/filters/chunk_demuxer.h" | 23 #include "media/filters/chunk_demuxer.h" |
| 24 #include "media/filters/decrypting_demuxer_stream.h" | 24 #include "media/filters/decrypting_demuxer_stream.h" |
| 25 #include "third_party/WebKit/public/platform/WebRuntimeFeatures.h" |
| 25 #include "third_party/WebKit/public/platform/WebString.h" | 26 #include "third_party/WebKit/public/platform/WebString.h" |
| 26 #include "third_party/WebKit/public/web/WebRuntimeFeatures.h" | |
| 27 | 27 |
| 28 using media::DemuxerStream; | 28 using media::DemuxerStream; |
| 29 using media::DemuxerConfigs; | 29 using media::DemuxerConfigs; |
| 30 using media::DemuxerData; | 30 using media::DemuxerData; |
| 31 using blink::WebMediaPlayer; | 31 using blink::WebMediaPlayer; |
| 32 using blink::WebString; | 32 using blink::WebString; |
| 33 | 33 |
| 34 namespace { | 34 namespace { |
| 35 | 35 |
| 36 // The size of the access unit to transfer in an IPC in case of MediaSource. | 36 // The size of the access unit to transfer in an IPC in case of MediaSource. |
| (...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 configs->video_codec = config.codec(); | 801 configs->video_codec = config.codec(); |
| 802 configs->video_size = config.natural_size(); | 802 configs->video_size = config.natural_size(); |
| 803 configs->is_video_encrypted = config.is_encrypted(); | 803 configs->is_video_encrypted = config.is_encrypted(); |
| 804 configs->video_extra_data = config.extra_data(); | 804 configs->video_extra_data = config.extra_data(); |
| 805 return true; | 805 return true; |
| 806 } | 806 } |
| 807 return false; | 807 return false; |
| 808 } | 808 } |
| 809 | 809 |
| 810 } // namespace content | 810 } // namespace content |
| OLD | NEW |