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

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

Issue 1292433002: Defer media playback in background tabs. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 4 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void AddKeySystems( 44 void AddKeySystems(
45 std::vector< ::media::KeySystemInfo>* key_systems) override; 45 std::vector< ::media::KeySystemInfo>* key_systems) override;
46 #if !defined(OS_ANDROID) 46 #if !defined(OS_ANDROID)
47 scoped_ptr<::media::RendererFactory> CreateMediaRendererFactory( 47 scoped_ptr<::media::RendererFactory> CreateMediaRendererFactory(
48 content::RenderFrame* render_frame, 48 content::RenderFrame* render_frame,
49 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories, 49 const scoped_refptr<::media::GpuVideoAcceleratorFactories>& gpu_factories,
50 const scoped_refptr<::media::MediaLog>& media_log) override; 50 const scoped_refptr<::media::MediaLog>& media_log) override;
51 #endif 51 #endif
52 blink::WebPrescientNetworking* GetPrescientNetworking() override; 52 blink::WebPrescientNetworking* GetPrescientNetworking() override;
53 void DeferMediaLoad(content::RenderFrame* render_frame, 53 void DeferMediaLoad(content::RenderFrame* render_frame,
54 bool render_frame_has_played_media_before,
54 const base::Closure& closure) override; 55 const base::Closure& closure) override;
55 56
56 protected: 57 protected:
57 CastContentRendererClient(); 58 CastContentRendererClient();
58 59
59 private: 60 private:
60 scoped_ptr<network_hints::PrescientNetworkingDispatcher> 61 scoped_ptr<network_hints::PrescientNetworkingDispatcher>
61 prescient_networking_dispatcher_; 62 prescient_networking_dispatcher_;
62 scoped_ptr<CastRenderProcessObserver> cast_observer_; 63 scoped_ptr<CastRenderProcessObserver> cast_observer_;
63 64
64 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); 65 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient);
65 }; 66 };
66 67
67 } // namespace shell 68 } // namespace shell
68 } // namespace chromecast 69 } // namespace chromecast
69 70
70 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ 71 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/prerender/prerender_media_load_deferrer.cc ('k') | chromecast/renderer/cast_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698