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

Side by Side Diff: blimp/engine/common/blimp_browser_context.cc

Issue 2133083002: Remove all remaining traces of MessageLoopProxy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 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/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 } 174 }
175 175
176 net::URLRequestContextGetter* BlimpBrowserContext::CreateRequestContext( 176 net::URLRequestContextGetter* BlimpBrowserContext::CreateRequestContext(
177 content::ProtocolHandlerMap* protocol_handlers, 177 content::ProtocolHandlerMap* protocol_handlers,
178 content::URLRequestInterceptorScopedVector request_interceptors) { 178 content::URLRequestInterceptorScopedVector request_interceptors) {
179 DCHECK(!resource_context_->url_request_context_getter()); 179 DCHECK(!resource_context_->url_request_context_getter());
180 // net_log_ is owned by BrowserMainParts. 180 // net_log_ is owned by BrowserMainParts.
181 resource_context_->set_url_request_context_getter( 181 resource_context_->set_url_request_context_getter(
182 new BlimpURLRequestContextGetter( 182 new BlimpURLRequestContextGetter(
183 ignore_certificate_errors_, GetPath(), 183 ignore_certificate_errors_, GetPath(),
184 content::BrowserThread::GetMessageLoopProxyForThread( 184 content::BrowserThread::GetTaskRunnerForThread(
185 content::BrowserThread::IO), 185 content::BrowserThread::IO),
186 content::BrowserThread::GetMessageLoopProxyForThread( 186 content::BrowserThread::GetTaskRunnerForThread(
187 content::BrowserThread::FILE), 187 content::BrowserThread::FILE),
188 protocol_handlers, std::move(request_interceptors), net_log_)); 188 protocol_handlers, std::move(request_interceptors), net_log_));
189 return resource_context_->url_request_context_getter().get(); 189 return resource_context_->url_request_context_getter().get();
190 } 190 }
191 191
192 net::URLRequestContextGetter* 192 net::URLRequestContextGetter*
193 BlimpBrowserContext::CreateRequestContextForStoragePartition( 193 BlimpBrowserContext::CreateRequestContextForStoragePartition(
194 const base::FilePath& partition_path, 194 const base::FilePath& partition_path,
195 bool in_memory, 195 bool in_memory,
196 content::ProtocolHandlerMap* protocol_handlers, 196 content::ProtocolHandlerMap* protocol_handlers,
197 content::URLRequestInterceptorScopedVector request_interceptors) { 197 content::URLRequestInterceptorScopedVector request_interceptors) {
198 return nullptr; 198 return nullptr;
199 } 199 }
200 200
201 net::URLRequestContextGetter* BlimpBrowserContext::CreateMediaRequestContext() { 201 net::URLRequestContextGetter* BlimpBrowserContext::CreateMediaRequestContext() {
202 return resource_context_->url_request_context_getter().get(); 202 return resource_context_->url_request_context_getter().get();
203 } 203 }
204 204
205 net::URLRequestContextGetter* 205 net::URLRequestContextGetter*
206 BlimpBrowserContext::CreateMediaRequestContextForStoragePartition( 206 BlimpBrowserContext::CreateMediaRequestContextForStoragePartition(
207 const base::FilePath& partition_path, 207 const base::FilePath& partition_path,
208 bool in_memory) { 208 bool in_memory) {
209 return nullptr; 209 return nullptr;
210 } 210 }
211 211
212 } // namespace engine 212 } // namespace engine
213 } // namespace blimp 213 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/browser_tests/blimp_browser_test.cc ('k') | blimp/engine/session/blimp_engine_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698