| 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 <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 namespace metrics { | 27 namespace metrics { |
| 28 class MetricsService; | 28 class MetricsService; |
| 29 } | 29 } |
| 30 | 30 |
| 31 namespace chromecast { | 31 namespace chromecast { |
| 32 class CastService; | 32 class CastService; |
| 33 | 33 |
| 34 namespace media { | 34 namespace media { |
| 35 class MediaPipelineBackend; | 35 class MediaPipelineBackend; |
| 36 class MediaPipelineBackendManager; |
| 36 struct MediaPipelineDeviceParams; | 37 struct MediaPipelineDeviceParams; |
| 37 class MediaResourceTracker; | 38 class MediaResourceTracker; |
| 38 class VideoPlaneController; | 39 class VideoPlaneController; |
| 39 } | 40 } |
| 40 | 41 |
| 41 namespace shell { | 42 namespace shell { |
| 42 | 43 |
| 43 class CastBrowserMainParts; | 44 class CastBrowserMainParts; |
| 44 class URLRequestContextFactory; | 45 class URLRequestContextFactory; |
| 45 | 46 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 57 // Hook for code to run before browser threads created. | 58 // Hook for code to run before browser threads created. |
| 58 virtual void PreCreateThreads(); | 59 virtual void PreCreateThreads(); |
| 59 | 60 |
| 60 // Creates and returns the CastService instance for the current process. | 61 // Creates and returns the CastService instance for the current process. |
| 61 // Note: |request_context_getter| might be different than the main request | 62 // Note: |request_context_getter| might be different than the main request |
| 62 // getter accessible via CastBrowserProcess. | 63 // getter accessible via CastBrowserProcess. |
| 63 virtual scoped_ptr<CastService> CreateCastService( | 64 virtual scoped_ptr<CastService> CreateCastService( |
| 64 content::BrowserContext* browser_context, | 65 content::BrowserContext* browser_context, |
| 65 PrefService* pref_service, | 66 PrefService* pref_service, |
| 66 net::URLRequestContextGetter* request_context_getter, | 67 net::URLRequestContextGetter* request_context_getter, |
| 67 media::VideoPlaneController* video_plane_controller); | 68 media::VideoPlaneController* video_plane_controller, |
| 69 media::MediaPipelineBackendManager* media_pipeline_backend_manager); |
| 68 | 70 |
| 69 #if !defined(OS_ANDROID) | 71 #if !defined(OS_ANDROID) |
| 70 // Creates a MediaPipelineDevice (CMA backend) for media playback, called | 72 // Creates a MediaPipelineDevice (CMA backend) for media playback, called |
| 71 // once per media player instance. | 73 // once per media player instance. |
| 72 virtual scoped_ptr<media::MediaPipelineBackend> CreateMediaPipelineBackend( | 74 virtual scoped_ptr<media::MediaPipelineBackend> CreateMediaPipelineBackend( |
| 73 const media::MediaPipelineDeviceParams& params); | 75 const media::MediaPipelineDeviceParams& params); |
| 74 | 76 |
| 75 media::MediaResourceTracker* media_resource_tracker(); | 77 media::MediaResourceTracker* media_resource_tracker(); |
| 76 #endif | 78 #endif |
| 77 | 79 |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 CastBrowserMainParts* cast_browser_main_parts_; | 194 CastBrowserMainParts* cast_browser_main_parts_; |
| 193 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; | 195 scoped_ptr<URLRequestContextFactory> url_request_context_factory_; |
| 194 | 196 |
| 195 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 197 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
| 196 }; | 198 }; |
| 197 | 199 |
| 198 } // namespace shell | 200 } // namespace shell |
| 199 } // namespace chromecast | 201 } // namespace chromecast |
| 200 | 202 |
| 201 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 203 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |