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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Tracks whether to issue time changed notifications during buffering state | 293 // Tracks whether to issue time changed notifications during buffering state |
294 // changes. | 294 // changes. |
295 bool should_notify_time_changed_; | 295 bool should_notify_time_changed_; |
296 | 296 |
297 blink::WebMediaPlayerClient* client_; | 297 blink::WebMediaPlayerClient* client_; |
298 | 298 |
299 base::WeakPtr<WebMediaPlayerDelegate> delegate_; | 299 base::WeakPtr<WebMediaPlayerDelegate> delegate_; |
300 | 300 |
301 base::Callback<void(const base::Closure&)> defer_load_cb_; | 301 base::Callback<void(const base::Closure&)> defer_load_cb_; |
302 | 302 |
303 // Since accelerated compositing status is only known after the first layout, | |
304 // we delay reporting it to UMA until that time. | |
305 bool accelerated_compositing_reported_; | |
306 | |
307 bool incremented_externally_allocated_memory_; | 303 bool incremented_externally_allocated_memory_; |
308 | 304 |
309 // Factories for supporting video accelerators. May be null. | 305 // Factories for supporting video accelerators. May be null. |
310 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_; | 306 scoped_refptr<media::GpuVideoAcceleratorFactories> gpu_factories_; |
311 | 307 |
312 // Routes audio playback to either AudioRendererSink or WebAudio. | 308 // Routes audio playback to either AudioRendererSink or WebAudio. |
313 scoped_refptr<WebAudioSourceProviderImpl> audio_source_provider_; | 309 scoped_refptr<WebAudioSourceProviderImpl> audio_source_provider_; |
314 | 310 |
315 bool supports_save_; | 311 bool supports_save_; |
316 | 312 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 WebContentDecryptionModuleImpl* web_cdm_; | 346 WebContentDecryptionModuleImpl* web_cdm_; |
351 | 347 |
352 media::DecryptorReadyCB decryptor_ready_cb_; | 348 media::DecryptorReadyCB decryptor_ready_cb_; |
353 | 349 |
354 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); | 350 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); |
355 }; | 351 }; |
356 | 352 |
357 } // namespace content | 353 } // namespace content |
358 | 354 |
359 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ | 355 #endif // CONTENT_RENDERER_MEDIA_WEBMEDIAPLAYER_IMPL_H_ |
OLD | NEW |