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

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

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 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 29 matching lines...) Expand all
40 #if !defined(OS_ANDROID) 40 #if !defined(OS_ANDROID)
41 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory( 41 std::unique_ptr<::media::RendererFactory> CreateMediaRendererFactory(
42 content::RenderFrame* render_frame, 42 content::RenderFrame* render_frame,
43 ::media::GpuVideoAcceleratorFactories* gpu_factories, 43 ::media::GpuVideoAcceleratorFactories* gpu_factories,
44 const scoped_refptr<::media::MediaLog>& media_log) override; 44 const scoped_refptr<::media::MediaLog>& media_log) override;
45 #endif 45 #endif
46 blink::WebPrescientNetworking* GetPrescientNetworking() override; 46 blink::WebPrescientNetworking* GetPrescientNetworking() override;
47 void DeferMediaLoad(content::RenderFrame* render_frame, 47 void DeferMediaLoad(content::RenderFrame* render_frame,
48 bool render_frame_has_played_media_before, 48 bool render_frame_has_played_media_before,
49 const base::Closure& closure) override; 49 const base::Closure& closure) override;
50 bool AllowMediaIdleSuspend() override;
50 51
51 protected: 52 protected:
52 CastContentRendererClient(); 53 CastContentRendererClient();
53 54
54 private: 55 private:
55 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> 56 std::unique_ptr<network_hints::PrescientNetworkingDispatcher>
56 prescient_networking_dispatcher_; 57 prescient_networking_dispatcher_;
57 std::unique_ptr<CastRenderThreadObserver> cast_observer_; 58 std::unique_ptr<CastRenderThreadObserver> cast_observer_;
58 const bool allow_hidden_media_playback_; 59 const bool allow_hidden_media_playback_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 61 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
61 }; 62 };
62 63
63 } // namespace shell 64 } // namespace shell
64 } // namespace chromecast 65 } // namespace chromecast
65 66
66 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 67 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromecast/renderer/cast_content_renderer_client.cc » ('j') | content/public/renderer/content_renderer_client.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698