| 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 #ifndef WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| 6 #define WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 6 #define CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "base/memory/weak_ptr.h" | 11 #include "base/memory/weak_ptr.h" |
| 12 #include "base/time.h" | 12 #include "base/time.h" |
| 13 #include "media/base/decryptor.h" | 13 #include "media/base/decryptor.h" |
| 14 #include "media/base/demuxer.h" | 14 #include "media/base/demuxer.h" |
| 15 #include "media/base/media_keys.h" | 15 #include "media/base/media_keys.h" |
| 16 #include "media/base/pipeline_status.h" | 16 #include "media/base/pipeline_status.h" |
| 17 #include "media/base/ranges.h" | 17 #include "media/base/ranges.h" |
| 18 #include "media/base/text_track.h" | 18 #include "media/base/text_track.h" |
| 19 #include "third_party/WebKit/public/web/WebMediaPlayer.h" | 19 #include "third_party/WebKit/public/web/WebMediaPlayer.h" |
| 20 | 20 |
| 21 namespace media { | 21 namespace media { |
| 22 class ChunkDemuxer; | 22 class ChunkDemuxer; |
| 23 class DecoderBuffer; | 23 class DecoderBuffer; |
| 24 class DemuxerStream; | 24 class DemuxerStream; |
| 25 class MediaLog; | 25 class MediaLog; |
| 26 struct MediaPlayerHostMsg_ReadFromDemuxerAck_Params; | 26 struct MediaPlayerHostMsg_ReadFromDemuxerAck_Params; |
| 27 } | 27 } |
| 28 | 28 |
| 29 namespace webkit_media { | 29 namespace content { |
| 30 | 30 |
| 31 class ProxyDecryptor; | |
| 32 class WebMediaPlayerProxyAndroid; | 31 class WebMediaPlayerProxyAndroid; |
| 33 | 32 |
| 34 class MediaSourceDelegate : public media::DemuxerHost { | 33 class MediaSourceDelegate : public media::DemuxerHost { |
| 35 public: | 34 public: |
| 36 typedef base::Callback<void(WebKit::WebMediaPlayer::NetworkState)> | 35 typedef base::Callback<void(WebKit::WebMediaPlayer::NetworkState)> |
| 37 UpdateNetworkStateCB; | 36 UpdateNetworkStateCB; |
| 38 typedef base::Callback<void(const base::TimeDelta&)> DurationChangeCB; | 37 typedef base::Callback<void(const base::TimeDelta&)> DurationChangeCB; |
| 39 | 38 |
| 40 // Helper class used by scoped_ptr to destroy an instance of | 39 // Helper class used by scoped_ptr to destroy an instance of |
| 41 // MediaSourceDelegate. | 40 // MediaSourceDelegate. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 153 |
| 155 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; | 154 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> audio_params_; |
| 156 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; | 155 scoped_ptr<media::MediaPlayerHostMsg_ReadFromDemuxerAck_Params> video_params_; |
| 157 | 156 |
| 158 bool seeking_; | 157 bool seeking_; |
| 159 size_t access_unit_size_; | 158 size_t access_unit_size_; |
| 160 | 159 |
| 161 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); | 160 DISALLOW_COPY_AND_ASSIGN(MediaSourceDelegate); |
| 162 }; | 161 }; |
| 163 | 162 |
| 164 } // namespace webkit_media | 163 } // namespace content |
| 165 #endif // WEBKIT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ | 164 |
| 165 #endif // CONTENT_RENDERER_MEDIA_ANDROID_MEDIA_SOURCE_DELEGATE_H_ |
| OLD | NEW |