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 22 matching lines...) Expand all Loading... |
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; | 41 bool IsSupportedAudioConfig(const ::media::AudioConfig& config) override; |
42 bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override; | 42 bool IsSupportedVideoConfig(const ::media::VideoConfig& config) override; |
| 43 bool IsSupportedBitstreamAudioCodec(::media::AudioCodec codec) override; |
43 blink::WebPrescientNetworking* GetPrescientNetworking() override; | 44 blink::WebPrescientNetworking* GetPrescientNetworking() override; |
44 void DeferMediaLoad(content::RenderFrame* render_frame, | 45 void DeferMediaLoad(content::RenderFrame* render_frame, |
45 bool render_frame_has_played_media_before, | 46 bool render_frame_has_played_media_before, |
46 const base::Closure& closure) override; | 47 const base::Closure& closure) override; |
47 bool AllowMediaSuspend() override; | 48 bool AllowMediaSuspend() override; |
48 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; | 49 void SetRuntimeFeaturesDefaultsBeforeBlinkInitialization() override; |
49 | 50 |
50 protected: | 51 protected: |
51 CastContentRendererClient(); | 52 CastContentRendererClient(); |
52 | 53 |
53 virtual void RunWhenInForeground(content::RenderFrame* render_frame, | 54 virtual void RunWhenInForeground(content::RenderFrame* render_frame, |
54 const base::Closure& closure); | 55 const base::Closure& closure); |
55 | 56 |
56 private: | 57 private: |
57 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> | 58 std::unique_ptr<network_hints::PrescientNetworkingDispatcher> |
58 prescient_networking_dispatcher_; | 59 prescient_networking_dispatcher_; |
59 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; | 60 std::unique_ptr<media::MediaCapsObserverImpl> media_caps_observer_; |
60 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_; | 61 std::unique_ptr<media::SupportedCodecProfileLevelsMemo> supported_profiles_; |
61 | 62 |
62 const bool allow_hidden_media_playback_; | 63 const bool allow_hidden_media_playback_; |
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_ |
OLD | NEW |