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 #include "chromecast/browser/cast_content_browser_client.h" | 5 #include "chromecast/browser/cast_content_browser_client.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base_switches.h" | 9 #include "base/base_switches.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 void CastContentBrowserClient::RenderProcessWillLaunch( | 65 void CastContentBrowserClient::RenderProcessWillLaunch( |
66 content::RenderProcessHost* host) { | 66 content::RenderProcessHost* host) { |
67 scoped_refptr<content::BrowserMessageFilter> network_hints_message_filter( | 67 scoped_refptr<content::BrowserMessageFilter> network_hints_message_filter( |
68 new network_hints::NetworkHintsMessageFilter( | 68 new network_hints::NetworkHintsMessageFilter( |
69 url_request_context_factory_->host_resolver())); | 69 url_request_context_factory_->host_resolver())); |
70 host->AddFilter(network_hints_message_filter.get()); | 70 host->AddFilter(network_hints_message_filter.get()); |
71 #if !defined(OS_ANDROID) | 71 #if !defined(OS_ANDROID) |
72 scoped_refptr<media::CmaMessageFilterHost> cma_message_filter( | 72 scoped_refptr<media::CmaMessageFilterHost> cma_message_filter( |
73 new media::CmaMessageFilterHost(host->GetID())); | 73 new media::CmaMessageFilterHost(host)); |
74 host->AddFilter(cma_message_filter.get()); | 74 host->AddFilter(cma_message_filter.get()); |
75 #endif // !defined(OS_ANDROID) | 75 #endif // !defined(OS_ANDROID) |
76 } | 76 } |
77 | 77 |
78 net::URLRequestContextGetter* CastContentBrowserClient::CreateRequestContext( | 78 net::URLRequestContextGetter* CastContentBrowserClient::CreateRequestContext( |
79 content::BrowserContext* browser_context, | 79 content::BrowserContext* browser_context, |
80 content::ProtocolHandlerMap* protocol_handlers, | 80 content::ProtocolHandlerMap* protocol_handlers, |
81 content::URLRequestInterceptorScopedVector request_interceptors) { | 81 content::URLRequestInterceptorScopedVector request_interceptors) { |
82 return url_request_context_factory_->CreateMainGetter( | 82 return url_request_context_factory_->CreateMainGetter( |
83 browser_context, | 83 browser_context, |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 process_type, dumps_path, false /* upload */); | 338 process_type, dumps_path, false /* upload */); |
339 // StartUploaderThread() even though upload is diferred. | 339 // StartUploaderThread() even though upload is diferred. |
340 // Breakpad-related memory is freed in the uploader thread. | 340 // Breakpad-related memory is freed in the uploader thread. |
341 crash_handler->StartUploaderThread(); | 341 crash_handler->StartUploaderThread(); |
342 return crash_handler; | 342 return crash_handler; |
343 } | 343 } |
344 #endif // !defined(OS_ANDROID) | 344 #endif // !defined(OS_ANDROID) |
345 | 345 |
346 } // namespace shell | 346 } // namespace shell |
347 } // namespace chromecast | 347 } // namespace chromecast |
OLD | NEW |