| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 void OnPipelineSuspended(PipelineStatus status); | 180 void OnPipelineSuspended(PipelineStatus status); |
| 181 void OnPipelineEnded(); | 181 void OnPipelineEnded(); |
| 182 void OnPipelineError(PipelineStatus error); | 182 void OnPipelineError(PipelineStatus error); |
| 183 void OnPipelineMetadata(PipelineMetadata metadata); | 183 void OnPipelineMetadata(PipelineMetadata metadata); |
| 184 void OnPipelineBufferingStateChanged(BufferingState buffering_state); | 184 void OnPipelineBufferingStateChanged(BufferingState buffering_state); |
| 185 void OnDemuxerOpened(); | 185 void OnDemuxerOpened(); |
| 186 void OnAddTextTrack(const TextTrackConfig& config, | 186 void OnAddTextTrack(const TextTrackConfig& config, |
| 187 const AddTextTrackDoneCB& done_cb); | 187 const AddTextTrackDoneCB& done_cb); |
| 188 | 188 |
| 189 // WebMediaPlayerDelegate::Observer implementation. | 189 // WebMediaPlayerDelegate::Observer implementation. |
| 190 blink::WebMediaPlayer* GetPlayer() override; |
| 190 void OnHidden() override; | 191 void OnHidden() override; |
| 191 void OnShown() override; | 192 void OnShown() override; |
| 193 void OnPlay() override; |
| 194 void OnPause() override; |
| 192 | 195 |
| 193 private: | 196 private: |
| 194 // Initiate suspending the pipeline. | 197 // Initiate suspending the pipeline. |
| 195 void Suspend(); | 198 void Suspend(); |
| 196 | 199 |
| 197 // Initiate resuming the pipeline. | 200 // Initiate resuming the pipeline. |
| 198 void Resume(); | 201 void Resume(); |
| 199 | 202 |
| 200 // Called after |defer_load_cb_| has decided to allow the load. If | 203 // Called after |defer_load_cb_| has decided to allow the load. If |
| 201 // |defer_load_cb_| is null this is called immediately. | 204 // |defer_load_cb_| is null this is called immediately. |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; | 402 scoped_ptr<blink::WebContentDecryptionModuleResult> set_cdm_result_; |
| 400 | 403 |
| 401 scoped_ptr<RendererFactory> renderer_factory_; | 404 scoped_ptr<RendererFactory> renderer_factory_; |
| 402 | 405 |
| 403 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 406 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 404 }; | 407 }; |
| 405 | 408 |
| 406 } // namespace media | 409 } // namespace media |
| 407 | 410 |
| 408 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ | 411 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |