OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "blimp/engine/common/blimp_browser_context.h" | 5 #include "blimp/engine/common/blimp_browser_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/environment.h" | 8 #include "base/environment.h" |
9 #include "base/files/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/nix/xdg_util.h" | 10 #include "base/nix/xdg_util.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 const scoped_refptr<BlimpURLRequestContextGetter>& | 103 const scoped_refptr<BlimpURLRequestContextGetter>& |
104 BlimpBrowserContext::CreateRequestContext( | 104 BlimpBrowserContext::CreateRequestContext( |
105 content::ProtocolHandlerMap* protocol_handlers, | 105 content::ProtocolHandlerMap* protocol_handlers, |
106 content::URLRequestInterceptorScopedVector request_interceptors) { | 106 content::URLRequestInterceptorScopedVector request_interceptors) { |
107 DCHECK(!resource_context_->url_request_context_getter()); | 107 DCHECK(!resource_context_->url_request_context_getter()); |
108 // net_log_ is owned by BrowserMainParts. | 108 // net_log_ is owned by BrowserMainParts. |
109 resource_context_->set_url_request_context_getter( | 109 resource_context_->set_url_request_context_getter( |
110 new BlimpURLRequestContextGetter( | 110 new BlimpURLRequestContextGetter( |
111 ignore_certificate_errors_, GetPath(), | 111 ignore_certificate_errors_, GetPath(), |
112 content::BrowserThread::UnsafeGetMessageLoopForThread( | 112 content::BrowserThread::GetMessageLoopProxyForThread( |
113 content::BrowserThread::IO) | 113 content::BrowserThread::IO), |
114 ->task_runner(), | 114 content::BrowserThread::GetMessageLoopProxyForThread( |
115 content::BrowserThread::UnsafeGetMessageLoopForThread( | 115 content::BrowserThread::FILE), |
116 content::BrowserThread::FILE) | |
117 ->task_runner(), | |
118 protocol_handlers, std::move(request_interceptors), net_log_)); | 116 protocol_handlers, std::move(request_interceptors), net_log_)); |
119 return resource_context_->url_request_context_getter(); | 117 return resource_context_->url_request_context_getter(); |
120 } | 118 } |
121 | 119 |
122 net::URLRequestContextGetter* | 120 net::URLRequestContextGetter* |
123 BlimpBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { | 121 BlimpBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) { |
124 return GetRequestContext(); | 122 return GetRequestContext(); |
125 } | 123 } |
126 | 124 |
127 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() { | 125 net::URLRequestContextGetter* BlimpBrowserContext::GetMediaRequestContext() { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 return permission_manager_.get(); | 165 return permission_manager_.get(); |
168 } | 166 } |
169 | 167 |
170 content::BackgroundSyncController* | 168 content::BackgroundSyncController* |
171 BlimpBrowserContext::GetBackgroundSyncController() { | 169 BlimpBrowserContext::GetBackgroundSyncController() { |
172 return nullptr; | 170 return nullptr; |
173 } | 171 } |
174 | 172 |
175 } // namespace engine | 173 } // namespace engine |
176 } // namespace blimp | 174 } // namespace blimp |
OLD | NEW |