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 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 namespace media { | 23 namespace media { |
24 class BrowserCdmFactory; | 24 class BrowserCdmFactory; |
25 } | 25 } |
26 | 26 |
27 namespace metrics { | 27 namespace metrics { |
28 class MetricsService; | 28 class MetricsService; |
29 } | 29 } |
30 | 30 |
31 namespace network_hints { | |
32 class NetworkHintsImpl; | |
33 } | |
34 | |
35 namespace chromecast { | 31 namespace chromecast { |
36 class CastService; | 32 class CastService; |
37 | 33 |
38 namespace media { | 34 namespace media { |
39 class MediaPipelineBackend; | 35 class MediaPipelineBackend; |
40 class MediaPipelineBackendManager; | 36 class MediaPipelineBackendManager; |
41 struct MediaPipelineDeviceParams; | 37 struct MediaPipelineDeviceParams; |
42 class MediaResourceTracker; | 38 class MediaResourceTracker; |
43 class VideoPlaneController; | 39 class VideoPlaneController; |
44 } | 40 } |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) | 163 #endif // defined(OS_ANDROID) && defined(VIDEO_HOLE) |
168 | 164 |
169 protected: | 165 protected: |
170 CastContentBrowserClient(); | 166 CastContentBrowserClient(); |
171 | 167 |
172 URLRequestContextFactory* url_request_context_factory() const { | 168 URLRequestContextFactory* url_request_context_factory() const { |
173 return url_request_context_factory_.get(); | 169 return url_request_context_factory_.get(); |
174 } | 170 } |
175 | 171 |
176 private: | 172 private: |
177 void AddNetworkHintsImpl(int render_process_id, | 173 void AddNetworkHintsMessageFilter(int render_process_id, |
178 net::URLRequestContext* context); | 174 net::URLRequestContext* context); |
179 | 175 |
180 net::X509Certificate* SelectClientCertificateOnIOThread( | 176 net::X509Certificate* SelectClientCertificateOnIOThread( |
181 GURL requesting_url, | 177 GURL requesting_url, |
182 int render_process_id); | 178 int render_process_id); |
183 | 179 |
184 #if !defined(OS_ANDROID) | 180 #if !defined(OS_ANDROID) |
185 // Returns the crash signal FD corresponding to the current process type. | 181 // Returns the crash signal FD corresponding to the current process type. |
186 int GetCrashSignalFD(const base::CommandLine& command_line); | 182 int GetCrashSignalFD(const base::CommandLine& command_line); |
187 | 183 |
188 // Creates a CrashHandlerHost instance for the given process type. | 184 // Creates a CrashHandlerHost instance for the given process type. |
189 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( | 185 breakpad::CrashHandlerHostLinux* CreateCrashHandlerHost( |
190 const std::string& process_type); | 186 const std::string& process_type); |
191 | 187 |
192 // A static cache to hold crash_handlers for each process_type | 188 // A static cache to hold crash_handlers for each process_type |
193 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; | 189 std::map<std::string, breakpad::CrashHandlerHostLinux*> crash_handlers_; |
194 #endif // !defined(OS_ANDROID) | 190 #endif // !defined(OS_ANDROID) |
195 | 191 |
196 // Created by CastContentBrowserClient but owned by BrowserMainLoop. | 192 // Created by CastContentBrowserClient but owned by BrowserMainLoop. |
197 CastBrowserMainParts* cast_browser_main_parts_; | 193 CastBrowserMainParts* cast_browser_main_parts_; |
198 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; | 194 std::unique_ptr<URLRequestContextFactory> url_request_context_factory_; |
199 | 195 |
200 std::unique_ptr<network_hints::NetworkHintsImpl> network_hints_; | |
201 | |
202 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); | 196 DISALLOW_COPY_AND_ASSIGN(CastContentBrowserClient); |
203 }; | 197 }; |
204 | 198 |
205 } // namespace shell | 199 } // namespace shell |
206 } // namespace chromecast | 200 } // namespace chromecast |
207 | 201 |
208 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ | 202 #endif // CHROMECAST_BROWSER_CAST_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |