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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const media::AddTextTrackDoneCB& done_cb); | 184 const media::AddTextTrackDoneCB& done_cb); |
185 | 185 |
186 private: | 186 private: |
187 // Called after |defer_load_cb_| has decided to allow the load. If | 187 // Called after |defer_load_cb_| has decided to allow the load. If |
188 // |defer_load_cb_| is null this is called immediately. | 188 // |defer_load_cb_| is null this is called immediately. |
189 void DoLoad(LoadType load_type, | 189 void DoLoad(LoadType load_type, |
190 const blink::WebURL& url, | 190 const blink::WebURL& url, |
191 CORSMode cors_mode); | 191 CORSMode cors_mode); |
192 | 192 |
193 // Called after asynchronous initialization of a data source completed. | 193 // Called after asynchronous initialization of a data source completed. |
194 void DataSourceInitialized(const GURL& gurl, bool success); | 194 void DataSourceInitialized(bool success); |
195 | 195 |
196 // Called when the data source is downloading or paused. | 196 // Called when the data source is downloading or paused. |
197 void NotifyDownloading(bool is_downloading); | 197 void NotifyDownloading(bool is_downloading); |
198 | 198 |
199 // Finishes starting the pipeline due to a call to load(). | 199 // Finishes starting the pipeline due to a call to load(). |
200 void StartPipeline(); | 200 void StartPipeline(); |
201 | 201 |
202 // Helpers that set the network/ready state and notifies the client if | 202 // Helpers that set the network/ready state and notifies the client if |
203 // they've changed. | 203 // they've changed. |
204 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); | 204 void SetNetworkState(blink::WebMediaPlayer::NetworkState state); |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 bool accelerated_compositing_reported_; | 303 bool accelerated_compositing_reported_; |
304 | 304 |
305 bool incremented_externally_allocated_memory_; | 305 bool incremented_externally_allocated_memory_; |
306 | 306 |
307 // Factories for supporting video accelerators. May be null. | 307 // Factories for supporting video accelerators. May be null. |
308 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_; | 308 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_; |
309 | 309 |
310 // Routes audio playback to either AudioRendererSink or WebAudio. | 310 // Routes audio playback to either AudioRendererSink or WebAudio. |
311 scoped_refptr<WebAudioSourceProviderImpl> audio_source_provider_; | 311 scoped_refptr<WebAudioSourceProviderImpl> audio_source_provider_; |
312 | 312 |
313 bool is_local_source_; | |
314 bool supports_save_; | 313 bool supports_save_; |
315 | 314 |
316 bool starting_; | 315 bool starting_; |
317 | 316 |
318 // These two are mutually exclusive: | 317 // These two are mutually exclusive: |
319 // |data_source_| is used for regular resource loads. | 318 // |data_source_| is used for regular resource loads. |
320 // |chunk_demuxer_| is used for Media Source resource loads. | 319 // |chunk_demuxer_| is used for Media Source resource loads. |
321 // | 320 // |
322 // |demuxer_| will contain the appropriate demuxer based on which resource | 321 // |demuxer_| will contain the appropriate demuxer based on which resource |
323 // load strategy we're using. | 322 // load strategy we're using. |
(...skipping 27 matching lines...) Expand all Loading... |
351 WebContentDecryptionModuleImpl* web_cdm_; | 350 WebContentDecryptionModuleImpl* web_cdm_; |
352 | 351 |
353 media::DecryptorReadyCB decryptor_ready_cb_; | 352 media::DecryptorReadyCB decryptor_ready_cb_; |
354 | 353 |
355 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 354 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
356 }; | 355 }; |
357 | 356 |
358 } // namespace content | 357 } // namespace content |
359 | 358 |
360 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 359 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |