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

Side by Side Diff: blimp/engine/app/blimp_url_request_context_getter.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/app/blimp_url_request_context_getter.h" 5 #include "blimp/engine/app/blimp_url_request_context_getter.h"
6 6
7 #include <utility> 7 #include <utility>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 params.ignore_certificate_errors = ignore_certificate_errors_; 84 params.ignore_certificate_errors = ignore_certificate_errors_;
85 builder.set_http_network_session_params(params); 85 builder.set_http_network_session_params(params);
86 86
87 url_request_context_ = builder.Build(); 87 url_request_context_ = builder.Build();
88 } 88 }
89 return url_request_context_.get(); 89 return url_request_context_.get();
90 } 90 }
91 91
92 scoped_refptr<base::SingleThreadTaskRunner> 92 scoped_refptr<base::SingleThreadTaskRunner>
93 BlimpURLRequestContextGetter::GetNetworkTaskRunner() const { 93 BlimpURLRequestContextGetter::GetNetworkTaskRunner() const {
94 return content::BrowserThread::GetMessageLoopProxyForThread( 94 return content::BrowserThread::GetTaskRunnerForThread(
95 content::BrowserThread::IO); 95 content::BrowserThread::IO);
96 } 96 }
97 97
98 net::HostResolver* BlimpURLRequestContextGetter::host_resolver() { 98 net::HostResolver* BlimpURLRequestContextGetter::host_resolver() {
99 return url_request_context_->host_resolver(); 99 return url_request_context_->host_resolver();
100 } 100 }
101 101
102 } // namespace engine 102 } // namespace engine
103 } // namespace blimp 103 } // namespace blimp
OLDNEW
« no previous file with comments | « blimp/engine/app/blimp_system_url_request_context_getter.cc ('k') | blimp/engine/browser_tests/blimp_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698