| 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 MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
| 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 6 #define MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
| 7 | 7 | 
| 8 #include <string> | 8 #include <string> | 
| 9 #include <vector> | 9 #include <vector> | 
| 10 | 10 | 
| 11 #include "base/basictypes.h" |  | 
| 12 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" | 
| 13 #include "base/memory/linked_ptr.h" | 12 #include "base/memory/linked_ptr.h" | 
| 14 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" | 
| 15 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" | 
| 16 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" | 
| 17 #include "base/threading/thread.h" | 16 #include "base/threading/thread.h" | 
| 18 #include "media/base/cdm_factory.h" | 17 #include "media/base/cdm_factory.h" | 
| 19 #include "media/base/pipeline.h" | 18 #include "media/base/pipeline.h" | 
| 20 #include "media/base/renderer_factory.h" | 19 #include "media/base/renderer_factory.h" | 
| 21 #include "media/base/text_track.h" | 20 #include "media/base/text_track.h" | 
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 229   // Called by VideoRendererImpl on its internal thread with the new frame to be | 228   // Called by VideoRendererImpl on its internal thread with the new frame to be | 
| 230   // painted. | 229   // painted. | 
| 231   void FrameReady(const scoped_refptr<VideoFrame>& frame); | 230   void FrameReady(const scoped_refptr<VideoFrame>& frame); | 
| 232 | 231 | 
| 233   // Returns the current video frame from |compositor_|. Blocks until the | 232   // Returns the current video frame from |compositor_|. Blocks until the | 
| 234   // compositor can return the frame. | 233   // compositor can return the frame. | 
| 235   scoped_refptr<VideoFrame> GetCurrentFrameFromCompositor(); | 234   scoped_refptr<VideoFrame> GetCurrentFrameFromCompositor(); | 
| 236 | 235 | 
| 237   // Called when the demuxer encounters encrypted streams. | 236   // Called when the demuxer encounters encrypted streams. | 
| 238   void OnEncryptedMediaInitData(EmeInitDataType init_data_type, | 237   void OnEncryptedMediaInitData(EmeInitDataType init_data_type, | 
| 239                                 const std::vector<uint8>& init_data); | 238                                 const std::vector<uint8_t>& init_data); | 
| 240 | 239 | 
| 241   // Called when a decoder detects that the key needed to decrypt the stream | 240   // Called when a decoder detects that the key needed to decrypt the stream | 
| 242   // is not available. | 241   // is not available. | 
| 243   void OnWaitingForDecryptionKey(); | 242   void OnWaitingForDecryptionKey(); | 
| 244 | 243 | 
| 245   // Sets |cdm_context| on the pipeline and fires |cdm_attached_cb| when done. | 244   // Sets |cdm_context| on the pipeline and fires |cdm_attached_cb| when done. | 
| 246   // Parameter order is reversed for easy binding. | 245   // Parameter order is reversed for easy binding. | 
| 247   void SetCdm(const CdmAttachedCB& cdm_attached_cb, CdmContext* cdm_context); | 246   void SetCdm(const CdmAttachedCB& cdm_attached_cb, CdmContext* cdm_context); | 
| 248 | 247 | 
| 249   // Called when a CDM has been attached to the |pipeline_|. | 248   // Called when a CDM has been attached to the |pipeline_|. | 
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 397   scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 396   scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 
| 398 | 397 | 
| 399   scoped_ptr<RendererFactory> renderer_factory_; | 398   scoped_ptr<RendererFactory> renderer_factory_; | 
| 400 | 399 | 
| 401   DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 400   DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 
| 402 }; | 401 }; | 
| 403 | 402 | 
| 404 }  // namespace media | 403 }  // namespace media | 
| 405 | 404 | 
| 406 #endif  // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 405 #endif  // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 
| OLD | NEW | 
|---|