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

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

Issue 2610893004: [Media] Disable background video optimization for streaming videos (Closed)
Patch Set: Rebase 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') | no next file with comments »
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 // Whether the media should be paused when hidden. 374 // Whether the media should be paused when hidden.
372 bool ShouldPauseWhenHidden() const; 375 bool ShouldPauseWhenHidden() const;
373 376
374 blink::WebLocalFrame* frame_; 377 blink::WebLocalFrame* frame_;
375 378
376 // The playback state last reported to |delegate_|, to avoid setting duplicate 379 // The playback state last reported to |delegate_|, to avoid setting duplicate
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
598 601
599 // Whether the player is currently in autoplay muted state. 602 // Whether the player is currently in autoplay muted state.
600 bool autoplay_muted_ = false; 603 bool autoplay_muted_ = false;
601 604
602 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 605 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
603 }; 606 };
604 607
605 } // namespace media 608 } // namespace media
606 609
607 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 610 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698