Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(439)

Side by Side Diff: chromecast/browser/cast_content_browser_client.h

Issue 2643553002: [Chromecast] Reuse the Aura window manager across receiver apps. (Closed)
Patch Set: applied reviewer feedback Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 class URLRequestContextGetter; 29 class URLRequestContextGetter;
30 class X509Certificate; 30 class X509Certificate;
31 } 31 }
32 32
33 namespace service_manager { 33 namespace service_manager {
34 class InterfaceRegistry; 34 class InterfaceRegistry;
35 } 35 }
36 36
37 namespace chromecast { 37 namespace chromecast {
38 class CastService; 38 class CastService;
39 class CastWindowManager;
39 40
40 namespace media { 41 namespace media {
41 class MediaCapsImpl; 42 class MediaCapsImpl;
42 class MediaPipelineBackend; 43 class MediaPipelineBackend;
43 class MediaPipelineBackendManager; 44 class MediaPipelineBackendManager;
44 struct MediaPipelineDeviceParams; 45 struct MediaPipelineDeviceParams;
45 class MediaResourceTracker; 46 class MediaResourceTracker;
46 class VideoPlaneController; 47 class VideoPlaneController;
47 class VideoResolutionPolicy; 48 class VideoResolutionPolicy;
48 } 49 }
(...skipping 17 matching lines...) Expand all
66 // Hook for code to run before browser threads created. 67 // Hook for code to run before browser threads created.
67 virtual void PreCreateThreads(); 68 virtual void PreCreateThreads();
68 69
69 // Creates and returns the CastService instance for the current process. 70 // Creates and returns the CastService instance for the current process.
70 // Note: |request_context_getter| might be different than the main request 71 // Note: |request_context_getter| might be different than the main request
71 // getter accessible via CastBrowserProcess. 72 // getter accessible via CastBrowserProcess.
72 virtual std::unique_ptr<CastService> CreateCastService( 73 virtual std::unique_ptr<CastService> CreateCastService(
73 content::BrowserContext* browser_context, 74 content::BrowserContext* browser_context,
74 PrefService* pref_service, 75 PrefService* pref_service,
75 net::URLRequestContextGetter* request_context_getter, 76 net::URLRequestContextGetter* request_context_getter,
76 media::VideoPlaneController* video_plane_controller); 77 media::VideoPlaneController* video_plane_controller,
78 CastWindowManager* window_manager);
77 79
78 #if !defined(OS_ANDROID) 80 #if !defined(OS_ANDROID)
79 // Gets object for enforcing video resolution policy restrictions. 81 // Gets object for enforcing video resolution policy restrictions.
80 virtual media::VideoResolutionPolicy* GetVideoResolutionPolicy(); 82 virtual media::VideoResolutionPolicy* GetVideoResolutionPolicy();
81 83
82 // Returns the task runner that must be used for media IO. 84 // Returns the task runner that must be used for media IO.
83 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); 85 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner();
84 86
85 // Creates a MediaPipelineDevice (CMA backend) for media playback, called 87 // Creates a MediaPipelineDevice (CMA backend) for media playback, called
86 // once per media player instance. 88 // once per media player instance.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 CastBrowserMainParts* cast_browser_main_parts_; 198 CastBrowserMainParts* cast_browser_main_parts_;
197 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; 199 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_;
198 200
199 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 201 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
200 }; 202 };
201 203
202 } // namespace shell 204 } // namespace shell
203 } // namespace chromecast 205 } // namespace chromecast
204 206
205 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 207 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698