| 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 CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 void DoLoad(LoadType load_type, | 195 void DoLoad(LoadType load_type, |
| 196 const blink::WebURL& url, | 196 const blink::WebURL& url, |
| 197 CORSMode cors_mode); | 197 CORSMode cors_mode); |
| 198 | 198 |
| 199 // Called after asynchronous initialization of a data source completed. | 199 // Called after asynchronous initialization of a data source completed. |
| 200 void DataSourceInitialized(bool success); | 200 void DataSourceInitialized(bool success); |
| 201 | 201 |
| 202 // Called when the data source is downloading or paused. | 202 // Called when the data source is downloading or paused. |
| 203 void NotifyDownloading(bool is_downloading); | 203 void NotifyDownloading(bool is_downloading); |
| 204 | 204 |
| 205 // Creates a media::Renderer that will be used by the |pipeline_|. | |
| 206 scoped_ptr<media::Renderer> CreateRenderer(); | |
| 207 | |
| 208 // Finishes starting the pipeline due to a call to load(). | 205 // Finishes starting the pipeline due to a call to load(). |
| 209 void StartPipeline(); | 206 void StartPipeline(); |
| 210 | 207 |
| 211 // Helpers that set the network/ready state and notifies the client if | 208 // Helpers that set the network/ready state and notifies the client if |
| 212 // they've changed. | 209 // they've changed. |
| 213 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 210 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
| 214 void SetReadyState(blink::WebMediaPlayer::ReadyState state); | 211 void SetReadyState(blink::WebMediaPlayer::ReadyState state); |
| 215 | 212 |
| 216 // Lets V8 know that player uses extra resources not managed by V8. | 213 // Lets V8 know that player uses extra resources not managed by V8. |
| 217 void IncrementExternallyAllocatedMemory(); | 214 void IncrementExternallyAllocatedMemory(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 366 WebContentDecryptionModuleImpl* web_cdm_; | 363 WebContentDecryptionModuleImpl* web_cdm_; |
| 367 | 364 |
| 368 media::DecryptorReadyCB decryptor_ready_cb_; | 365 media::DecryptorReadyCB decryptor_ready_cb_; |
| 369 | 366 |
| 370 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 367 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 371 }; | 368 }; |
| 372 | 369 |
| 373 } // namespace content | 370 } // namespace content |
| 374 | 371 |
| 375 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 372 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |