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_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 // Returns the task runner that must be used for media IO. | 93 // Returns the task runner that must be used for media IO. |
94 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); | 94 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); |
95 | 95 |
96 // Creates a MediaPipelineBackendFactory. | 96 // Creates a MediaPipelineBackendFactory. |
97 virtual media::MediaPipelineBackendFactory* GetMediaPipelineBackendFactory(); | 97 virtual media::MediaPipelineBackendFactory* GetMediaPipelineBackendFactory(); |
98 | 98 |
99 media::MediaResourceTracker* media_resource_tracker(); | 99 media::MediaResourceTracker* media_resource_tracker(); |
100 | 100 |
101 media::MediaPipelineBackendManager* media_pipeline_backend_manager(); | 101 media::MediaPipelineBackendManager* media_pipeline_backend_manager(); |
102 | 102 |
103 ::media::ScopedAudioManagerPtr CreateAudioManager( | 103 std::unique_ptr<::media::AudioManager> CreateAudioManager( |
104 ::media::AudioLogFactory* audio_log_factory) override; | 104 ::media::AudioLogFactory* audio_log_factory) override; |
105 std::unique_ptr<::media::CdmFactory> CreateCdmFactory() override; | 105 std::unique_ptr<::media::CdmFactory> CreateCdmFactory() override; |
106 #endif // BUILDFLAG(IS_CAST_USING_CMA_BACKEND) | 106 #endif // BUILDFLAG(IS_CAST_USING_CMA_BACKEND) |
107 media::MediaCapsImpl* media_caps(); | 107 media::MediaCapsImpl* media_caps(); |
108 | 108 |
109 // Invoked when the metrics client ID changes. | 109 // Invoked when the metrics client ID changes. |
110 virtual void SetMetricsClientId(const std::string& client_id); | 110 virtual void SetMetricsClientId(const std::string& client_id); |
111 | 111 |
112 // Allows registration of extra metrics providers. | 112 // Allows registration of extra metrics providers. |
113 virtual void RegisterMetricsProviders( | 113 virtual void RegisterMetricsProviders( |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 std::unique_ptr<media::MediaPipelineBackendFactory> | 212 std::unique_ptr<media::MediaPipelineBackendFactory> |
213 media_pipeline_backend_factory_; | 213 media_pipeline_backend_factory_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 215 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
216 }; | 216 }; |
217 | 217 |
218 } // namespace shell | 218 } // namespace shell |
219 } // namespace chromecast | 219 } // namespace chromecast |
220 | 220 |
221 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 221 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |