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