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

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

Issue 2656283002: [Chromecast] Enable QUIC for Chromecast. (Closed)
Patch Set: Created 3 years, 10 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class MediaResourceTracker; 46 class MediaResourceTracker;
47 class VideoPlaneController; 47 class VideoPlaneController;
48 class VideoResolutionPolicy; 48 class VideoResolutionPolicy;
49 } 49 }
50 50
51 namespace shell { 51 namespace shell {
52 52
53 class CastBrowserMainParts; 53 class CastBrowserMainParts;
54 class URLRequestContextFactory; 54 class URLRequestContextFactory;
55 55
56 using DisableQuicClosure = base::OnceClosure;
halliwell 2017/01/27 04:32:53 include base/callback_forward.h
mbjorge 2017/01/27 06:22:20 done
57
56 class CastContentBrowserClient : public content::ContentBrowserClient { 58 class CastContentBrowserClient : public content::ContentBrowserClient {
57 public: 59 public:
58 // Creates an implementation of CastContentBrowserClient. Platform should 60 // Creates an implementation of CastContentBrowserClient. Platform should
59 // link in an implementation as needed. 61 // link in an implementation as needed.
60 static std::unique_ptr<CastContentBrowserClient> Create(); 62 static std::unique_ptr<CastContentBrowserClient> Create();
61 63
62 ~CastContentBrowserClient() override; 64 ~CastContentBrowserClient() override;
63 65
64 // Appends extra command line arguments before launching a new process. 66 // Appends extra command line arguments before launching a new process.
65 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line); 67 virtual void AppendExtraCommandLineSwitches(base::CommandLine* command_line);
66 68
67 // Hook for code to run before browser threads created. 69 // Hook for code to run before browser threads created.
68 virtual void PreCreateThreads(); 70 virtual void PreCreateThreads();
69 71
70 // Creates and returns the CastService instance for the current process. 72 // Creates and returns the CastService instance for the current process.
71 // Note: |request_context_getter| might be different than the main request 73 // Note: |request_context_getter| might be different than the main request
72 // getter accessible via CastBrowserProcess. 74 // getter accessible via CastBrowserProcess.
73 virtual std::unique_ptr<CastService> CreateCastService( 75 virtual std::unique_ptr<CastService> CreateCastService(
74 content::BrowserContext* browser_context, 76 content::BrowserContext* browser_context,
75 PrefService* pref_service, 77 PrefService* pref_service,
76 net::URLRequestContextGetter* request_context_getter, 78 net::URLRequestContextGetter* request_context_getter,
79 DisableQuicClosure disable_quic_closure,
77 media::VideoPlaneController* video_plane_controller, 80 media::VideoPlaneController* video_plane_controller,
78 CastWindowManager* window_manager); 81 CastWindowManager* window_manager);
79 82
80 #if !defined(OS_ANDROID) 83 #if !defined(OS_ANDROID)
81 // Gets object for enforcing video resolution policy restrictions. 84 // Gets object for enforcing video resolution policy restrictions.
82 virtual media::VideoResolutionPolicy* GetVideoResolutionPolicy(); 85 virtual media::VideoResolutionPolicy* GetVideoResolutionPolicy();
83 86
84 // Returns the task runner that must be used for media IO. 87 // Returns the task runner that must be used for media IO.
85 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner(); 88 scoped_refptr<base::SingleThreadTaskRunner> GetMediaTaskRunner();
86 89
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 CastBrowserMainParts* cast_browser_main_parts_; 201 CastBrowserMainParts* cast_browser_main_parts_;
199 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; 202 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_;
200 203
201 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); 204 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient);
202 }; 205 };
203 206
204 } // namespace shell 207 } // namespace shell
205 } // namespace chromecast 208 } // namespace chromecast
206 209
207 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ 210 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698