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

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

Issue 2487373003: Disable background video track behind a feature flag (Closed)
Patch Set: Rebase + comment fix Created 4 years 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 | « media/base/media_switches.cc ('k') | 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // accessed on the media thread. 353 // accessed on the media thread.
354 void ReportMemoryUsage(); 354 void ReportMemoryUsage();
355 void FinishMemoryUsageReport(int64_t demuxer_memory_usage); 355 void FinishMemoryUsageReport(int64_t demuxer_memory_usage);
356 356
357 // Called during OnHidden() when we want a suspended player to enter the 357 // Called during OnHidden() when we want a suspended player to enter the
358 // paused state after some idle timeout. 358 // paused state after some idle timeout.
359 void ScheduleIdlePauseTimer(); 359 void ScheduleIdlePauseTimer();
360 360
361 void CreateWatchTimeReporter(); 361 void CreateWatchTimeReporter();
362 362
363 // Returns true if the player is hidden.
364 bool IsHidden() const;
365
363 blink::WebLocalFrame* frame_; 366 blink::WebLocalFrame* frame_;
364 367
365 // The playback state last reported to |delegate_|, to avoid setting duplicate 368 // The playback state last reported to |delegate_|, to avoid setting duplicate
366 // states. (Which can have undesired effects like resetting the idle timer.) 369 // states. (Which can have undesired effects like resetting the idle timer.)
367 DelegateState delegate_state_; 370 DelegateState delegate_state_;
368 371
369 // Set when OnSuspendRequested() is called with |must_suspend| unset. 372 // Set when OnSuspendRequested() is called with |must_suspend| unset.
370 bool is_idle_; 373 bool is_idle_;
371 374
372 // Set when OnSuspendRequested() is called with |must_suspend| set. 375 // Set when OnSuspendRequested() is called with |must_suspend| set.
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 583
581 // Whether the player is currently in autoplay muted state. 584 // Whether the player is currently in autoplay muted state.
582 bool autoplay_muted_ = false; 585 bool autoplay_muted_ = false;
583 586
584 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 587 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
585 }; 588 };
586 589
587 } // namespace media 590 } // namespace media
588 591
589 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 592 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_
OLDNEW
« no previous file with comments | « media/base/media_switches.cc ('k') | media/blink/webmediaplayer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698