Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: media/blink/webmediaplayer_impl.h

Issue 2610893004: [Media] Disable background video optimization for streaming videos (Closed)
Patch Set: Check for infinite duration Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 10 #include <memory>
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 // Called during OnHidden() when we want a suspended player to enter the 358 // Called during OnHidden() when we want a suspended player to enter the
359 // paused state after some idle timeout. 359 // paused state after some idle timeout.
360 void ScheduleIdlePauseTimer(); 360 void ScheduleIdlePauseTimer();
361 361
362 void CreateWatchTimeReporter(); 362 void CreateWatchTimeReporter();
363 363
364 // Returns true if the player is hidden. 364 // Returns true if the player is hidden.
365 bool IsHidden() const; 365 bool IsHidden() const;
366 366
367 // Returns true if the player's source is streaming.
368 bool IsStreaming() const;
369
367 // Return whether |pipeline_metadata_| is compatible with an overlay. This 370 // Return whether |pipeline_metadata_| is compatible with an overlay. This
368 // is intended for android. 371 // is intended for android.
369 bool DoesOverlaySupportMetadata() const; 372 bool DoesOverlaySupportMetadata() const;
370 373
371 blink::WebLocalFrame* frame_; 374 blink::WebLocalFrame* frame_;
372 375
373 // The playback state last reported to |delegate_|, to avoid setting duplicate 376 // The playback state last reported to |delegate_|, to avoid setting duplicate
374 // states. (Which can have undesired effects like resetting the idle timer.) 377 // states. (Which can have undesired effects like resetting the idle timer.)
375 DelegateState delegate_state_; 378 DelegateState delegate_state_;
376 379
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 594
592 // Whether the player is currently in autoplay muted state. 595 // Whether the player is currently in autoplay muted state.
593 bool autoplay_muted_ = false; 596 bool autoplay_muted_ = false;
594 597
595 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 598 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
596 }; 599 };
597 600
598 } // namespace media 601 } // namespace media
599 602
600 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 603 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | media/blink/webmediaplayer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698