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

Side by Side Diff: chromecast/renderer/cast_content_renderer_client.cc

Issue 1972783003: Disable idle suspend for Chromecast (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Simplify suspend state logic, and rebase Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chromecast/renderer/cast_content_renderer_client.h" 5 #include "chromecast/renderer/cast_content_renderer_client.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 const base::Closure& closure) { 133 const base::Closure& closure) {
134 if (!render_frame->IsHidden() || allow_hidden_media_playback_) { 134 if (!render_frame->IsHidden() || allow_hidden_media_playback_) {
135 closure.Run(); 135 closure.Run();
136 return; 136 return;
137 } 137 }
138 138
139 // Lifetime is tied to |render_frame| via content::RenderFrameObserver. 139 // Lifetime is tied to |render_frame| via content::RenderFrameObserver.
140 new CastMediaLoadDeferrer(render_frame, closure); 140 new CastMediaLoadDeferrer(render_frame, closure);
141 } 141 }
142 142
143 bool CastContentRendererClient::AllowMediaIdleSuspend() {
144 return false;
145 }
146
143 } // namespace shell 147 } // namespace shell
144 } // namespace chromecast 148 } // namespace chromecast
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698