Chromium Code Reviews| 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. | |
|
scherkus (not reviewing)
2014/08/22 20:50:01
nit: s/Pipeline/|pipeline_|/?
xhwang
2014/08/22 22:48:22
Done.
| |
| 206 scoped_ptr<media::Renderer> CreateRenderer(); | |
| 207 | |
| 205 // Finishes starting the pipeline due to a call to load(). | 208 // Finishes starting the pipeline due to a call to load(). |
| 206 void StartPipeline(); | 209 void StartPipeline(); |
| 207 | 210 |
| 208 // Helpers that set the network/ready state and notifies the client if | 211 // Helpers that set the network/ready state and notifies the client if |
| 209 // they've changed. | 212 // they've changed. |
| 210 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 213 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
| 211 void SetReadyState(blink::WebMediaPlayer::ReadyState state); | 214 void SetReadyState(blink::WebMediaPlayer::ReadyState state); |
| 212 | 215 |
| 213 // Lets V8 know that player uses extra resources not managed by V8. | 216 // Lets V8 know that player uses extra resources not managed by V8. |
| 214 void IncrementExternallyAllocatedMemory(); | 217 void IncrementExternallyAllocatedMemory(); |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 363 WebContentDecryptionModuleImpl* web_cdm_; | 366 WebContentDecryptionModuleImpl* web_cdm_; |
| 364 | 367 |
| 365 media::DecryptorReadyCB decryptor_ready_cb_; | 368 media::DecryptorReadyCB decryptor_ready_cb_; |
| 366 | 369 |
| 367 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 370 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
| 368 }; | 371 }; |
| 369 | 372 |
| 370 } // namespace content | 373 } // namespace content |
| 371 | 374 |
| 372 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 375 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
| OLD | NEW |