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

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

Issue 2511573002: Media: Don't suspend streaming media on Desktop. (Closed)
Patch Set: Created 4 years, 1 month 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 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // - hasVideo(), 332 // - hasVideo(),
333 // - delegate_->IsHidden(), 333 // - delegate_->IsHidden(),
334 // - network_state_, ready_state_, 334 // - network_state_, ready_state_,
335 // - is_idle_, must_suspend_, 335 // - is_idle_, must_suspend_,
336 // - paused_, ended_, 336 // - paused_, ended_,
337 // - pending_suspend_resume_cycle_, 337 // - pending_suspend_resume_cycle_,
338 void UpdatePlayState(); 338 void UpdatePlayState();
339 339
340 // Methods internal to UpdatePlayState(). 340 // Methods internal to UpdatePlayState().
341 PlayState UpdatePlayState_ComputePlayState(bool is_remote, 341 PlayState UpdatePlayState_ComputePlayState(bool is_remote,
342 bool is_streaming,
342 bool is_suspended, 343 bool is_suspended,
343 bool is_backgrounded); 344 bool is_backgrounded);
344 void SetDelegateState(DelegateState new_state); 345 void SetDelegateState(DelegateState new_state);
345 void SetMemoryReportingState(bool is_memory_reporting_enabled); 346 void SetMemoryReportingState(bool is_memory_reporting_enabled);
346 void SetSuspendState(bool is_suspended); 347 void SetSuspendState(bool is_suspended);
347 348
348 // Called at low frequency to tell external observers how much memory we're 349 // Called at low frequency to tell external observers how much memory we're
349 // using for video playback. Called by |memory_usage_reporting_timer_|. 350 // using for video playback. Called by |memory_usage_reporting_timer_|.
350 // Memory usage reporting is done in two steps, because |demuxer_| must be 351 // Memory usage reporting is done in two steps, because |demuxer_| must be
351 // accessed on the media thread. 352 // accessed on the media thread.
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 579
579 // Whether the player is currently in autoplay muted state. 580 // Whether the player is currently in autoplay muted state.
580 bool autoplay_muted_ = false; 581 bool autoplay_muted_ = false;
581 582
582 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl); 583 DISALLOW_COPY_AND_ASSIGN(WebMediaPlayerImpl);
583 }; 584 };
584 585
585 } // namespace media 586 } // namespace media
586 587
587 #endif // MEDIA_BLINK_WEBMEDIAPLAYER_IMPL_H_ 588 #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