| 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 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. | 5 // Delegate calls from WebCore::MediaPlayerPrivate to Chrome's video player. |
| 6 // It contains Pipeline which is the actual media player pipeline, it glues | 6 // It contains Pipeline which is the actual media player pipeline, it glues |
| 7 // the media player pipeline, data source, audio renderer and renderer. | 7 // the media player pipeline, data source, audio renderer and renderer. |
| 8 // Pipeline would creates multiple threads and access some public methods | 8 // Pipeline would creates multiple threads and access some public methods |
| 9 // of this class, so we need to be extra careful about concurrent access of | 9 // of this class, so we need to be extra careful about concurrent access of |
| 10 // methods and members. | 10 // methods and members. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "media/base/media_keys.h" | 33 #include "media/base/media_keys.h" |
| 34 #include "media/base/pipeline.h" | 34 #include "media/base/pipeline.h" |
| 35 #include "media/base/text_track.h" | 35 #include "media/base/text_track.h" |
| 36 #include "media/filters/gpu_video_decoder.h" | 36 #include "media/filters/gpu_video_decoder.h" |
| 37 #include "media/filters/skcanvas_video_renderer.h" | 37 #include "media/filters/skcanvas_video_renderer.h" |
| 38 #include "skia/ext/platform_canvas.h" | 38 #include "skia/ext/platform_canvas.h" |
| 39 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" | 39 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" |
| 40 #include "third_party/WebKit/public/web/WebAudioSourceProvider.h" | 40 #include "third_party/WebKit/public/web/WebAudioSourceProvider.h" |
| 41 #include "third_party/WebKit/public/web/WebMediaPlayer.h" | 41 #include "third_party/WebKit/public/web/WebMediaPlayer.h" |
| 42 #include "third_party/WebKit/public/web/WebMediaPlayerClient.h" | 42 #include "third_party/WebKit/public/web/WebMediaPlayerClient.h" |
| 43 #include "webkit/renderer/media/crypto/key_systems.h" | |
| 44 #include "webkit/renderer/media/crypto/proxy_decryptor.h" | 43 #include "webkit/renderer/media/crypto/proxy_decryptor.h" |
| 45 | 44 |
| 46 class RenderAudioSourceProvider; | 45 class RenderAudioSourceProvider; |
| 47 | 46 |
| 48 namespace WebKit { | 47 namespace WebKit { |
| 49 class WebFrame; | 48 class WebFrame; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace base { | 51 namespace base { |
| 53 class MessageLoopProxy; | 52 class MessageLoopProxy; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; | 181 virtual void WillDestroyCurrentMessageLoop() OVERRIDE; |
| 183 | 182 |
| 184 void Repaint(); | 183 void Repaint(); |
| 185 | 184 |
| 186 void OnPipelineSeek(media::PipelineStatus status); | 185 void OnPipelineSeek(media::PipelineStatus status); |
| 187 void OnPipelineEnded(); | 186 void OnPipelineEnded(); |
| 188 void OnPipelineError(media::PipelineStatus error); | 187 void OnPipelineError(media::PipelineStatus error); |
| 189 void OnPipelineBufferingState( | 188 void OnPipelineBufferingState( |
| 190 media::Pipeline::BufferingState buffering_state); | 189 media::Pipeline::BufferingState buffering_state); |
| 191 void OnDemuxerOpened(scoped_ptr<WebKit::WebMediaSource> media_source); | 190 void OnDemuxerOpened(scoped_ptr<WebKit::WebMediaSource> media_source); |
| 192 void OnKeyAdded(const std::string& key_system, const std::string& session_id); | 191 void OnKeyAdded(const std::string& session_id); |
| 193 void OnKeyError(const std::string& key_system, | 192 void OnKeyError(const std::string& session_id, |
| 194 const std::string& session_id, | |
| 195 media::MediaKeys::KeyError error_code, | 193 media::MediaKeys::KeyError error_code, |
| 196 int system_code); | 194 int system_code); |
| 197 void OnKeyMessage(const std::string& key_system, | 195 void OnKeyMessage(const std::string& session_id, |
| 198 const std::string& session_id, | |
| 199 const std::string& message, | 196 const std::string& message, |
| 200 const std::string& default_url); | 197 const std::string& default_url); |
| 201 void OnNeedKey(const std::string& key_system, | 198 void OnNeedKey(const std::string& type, |
| 202 const std::string& type, | |
| 203 const std::string& session_id, | 199 const std::string& session_id, |
| 204 scoped_ptr<uint8[]> init_data, | 200 scoped_ptr<uint8[]> init_data, |
| 205 int init_data_size); | 201 int init_data_size); |
| 206 scoped_ptr<media::TextTrack> OnTextTrack(media::TextKind kind, | 202 scoped_ptr<media::TextTrack> OnTextTrack(media::TextKind kind, |
| 207 const std::string& label, | 203 const std::string& label, |
| 208 const std::string& language); | 204 const std::string& language); |
| 209 void SetOpaque(bool); | 205 void SetOpaque(bool); |
| 210 | 206 |
| 211 private: | 207 private: |
| 212 // Contains common logic used across the different types loading. | 208 // Contains common logic used across the different types loading. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 | 364 |
| 369 // Text track objects get a unique index value when they're created. | 365 // Text track objects get a unique index value when they're created. |
| 370 int text_track_index_; | 366 int text_track_index_; |
| 371 | 367 |
| 372 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 368 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 373 }; | 369 }; |
| 374 | 370 |
| 375 } // namespace webkit_media | 371 } // namespace webkit_media |
| 376 | 372 |
| 377 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 373 #endif // WEBKIT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |