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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 net::URLRequestContextGetter* request_context_getter, | 67 net::URLRequestContextGetter* request_context_getter, |
68 media::VideoPlaneController* video_plane_controller); | 68 media::VideoPlaneController* video_plane_controller); |
69 | 69 |
70 #if !defined(OS_ANDROID) | 70 #if !defined(OS_ANDROID) |
71 // Returns the task runner that must be used for media IO. | 71 // Returns the task runner that must be used for media IO. |
72 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); | 72 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); |
73 | 73 |
74 // Creates a MediaPipelineDevice (CMA backend) for media playback, called | 74 // Creates a MediaPipelineDevice (CMA backend) for media playback, called |
75 // once per media player instance. | 75 // once per media player instance. |
76 virtual std::unique_ptr<media::MediaPipelineBackend> | 76 virtual std::unique_ptr<media::MediaPipelineBackend> |
77 CreateMediaPipelineBackend(const media::MediaPipelineDeviceParams& params); | 77 CreateMediaPipelineBackend(const media::MediaPipelineDeviceParams& params, |
| 78 const std::string& audio_device_id); |
78 | 79 |
79 media::MediaResourceTracker* media_resource_tracker(); | 80 media::MediaResourceTracker* media_resource_tracker(); |
80 | 81 |
81 media::MediaPipelineBackendManager* media_pipeline_backend_manager(); | 82 media::MediaPipelineBackendManager* media_pipeline_backend_manager(); |
82 #endif | 83 #endif |
83 | 84 |
84 // Invoked when the metrics client ID changes. | 85 // Invoked when the metrics client ID changes. |
85 virtual void SetMetricsClientId(const std::string& client_id); | 86 virtual void SetMetricsClientId(const std::string& client_id); |
86 | 87 |
87 // Allows registration of extra metrics providers. | 88 // Allows registration of extra metrics providers. |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 CastBrowserMainParts* cast_browser_main_parts_; | 193 CastBrowserMainParts* cast_browser_main_parts_; |
193 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; | 194 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; |
194 | 195 |
195 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 196 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
196 }; | 197 }; |
197 | 198 |
198 } // namespace shell | 199 } // namespace shell |
199 } // namespace chromecast | 200 } // namespace chromecast |
200 | 201 |
201 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 202 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |