OLD | NEW |
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 <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 static std::unique_ptr<CastContentRendererClient> Create(); | 31 static std::unique_ptr<CastContentRendererClient> Create(); |
32 | 32 |
33 ~CastContentRendererClient() override; | 33 ~CastContentRendererClient() override; |
34 | 34 |
35 // ContentRendererClient implementation: | 35 // ContentRendererClient implementation: |
36 void RenderThreadStarted() override; | 36 void RenderThreadStarted() override; |
37 void RenderViewCreated(content::RenderView* render_view) override; | 37 void RenderViewCreated(content::RenderView* render_view) override; |
38 void AddSupportedKeySystems( | 38 void AddSupportedKeySystems( |
39 std::vector<std::unique_ptr<::media::KeySystemProperties>>* | 39 std::vector<std::unique_ptr<::media::KeySystemProperties>>* |
40 key_systems_properties) override; | 40 key_systems_properties) override; |
| 41 bool IsSupportedAudioConfig(const ::media::AudioConfig& config) override; |
| 42 bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override; |
41 blink::WebPrescientNetworking* GetPrescientNetworking() override; | 43 blink::WebPrescientNetworking* GetPrescientNetworking() override; |
42 void DeferMediaLoad(content::RenderFrame* render_frame, | 44 void DeferMediaLoad(content::RenderFrame* render_frame, |
43 bool render_frame_has_played_media_before, | 45 bool render_frame_has_played_media_before, |
44 const base::Closure& closure) override; | 46 const base::Closure& closure) override; |
45 bool AllowMediaSuspend() override; | 47 bool AllowMediaSuspend() override; |
46 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; | 48 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; |
47 | 49 |
48 protected: | 50 protected: |
49 CastContentRendererClient(); | 51 CastContentRendererClient(); |
50 | 52 |
51 virtual void RunWhenInForeground(content::RenderFrame* render_frame, | 53 virtual void RunWhenInForeground(content::RenderFrame* render_frame, |
52 const base::Closure& closure); | 54 const base::Closure& closure); |
53 | 55 |
54 private: | 56 private: |
55 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> | 57 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
56 prescient_networking_dispatcher_; | 58 prescient_networking_dispatcher_; |
57 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; | 59 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; |
58 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_; | 60 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_; |
59 | 61 |
60 const bool allow_hidden_media_playback_; | 62 const bool allow_hidden_media_playback_; |
61 | 63 |
62 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); | 64 DISALLOW_COPY_AND_ASSIGN(CastContentRendererClient); |
63 }; | 65 }; |
64 | 66 |
65 } // namespace shell | 67 } // namespace shell |
66 } // namespace chromecast | 68 } // namespace chromecast |
67 | 69 |
68 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ | 70 #endif // CHROMECAST_RENDERER_CAST_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |