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

Side by Side Diff: content/shell/shell_url_request_context_getter.cc

Issue 14335017: content: Use base::MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('k') | content/shell/webkit_test_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/shell/shell_url_request_context_getter.h" 5 #include "content/shell/shell_url_request_context_getter.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/string_number_conversions.h" 9 #include "base/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 DCHECK(set_protocol); 49 DCHECK(set_protocol);
50 } 50 }
51 protocol_handlers->clear(); 51 protocol_handlers->clear();
52 } 52 }
53 53
54 } // namespace 54 } // namespace
55 55
56 ShellURLRequestContextGetter::ShellURLRequestContextGetter( 56 ShellURLRequestContextGetter::ShellURLRequestContextGetter(
57 bool ignore_certificate_errors, 57 bool ignore_certificate_errors,
58 const base::FilePath& base_path, 58 const base::FilePath& base_path,
59 MessageLoop* io_loop, 59 base::MessageLoop* io_loop,
60 MessageLoop* file_loop, 60 base::MessageLoop* file_loop,
61 ProtocolHandlerMap* protocol_handlers) 61 ProtocolHandlerMap* protocol_handlers)
62 : ignore_certificate_errors_(ignore_certificate_errors), 62 : ignore_certificate_errors_(ignore_certificate_errors),
63 base_path_(base_path), 63 base_path_(base_path),
64 io_loop_(io_loop), 64 io_loop_(io_loop),
65 file_loop_(file_loop) { 65 file_loop_(file_loop) {
66 // Must first be created on the UI thread. 66 // Must first be created on the UI thread.
67 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 67 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
68 68
69 std::swap(protocol_handlers_, *protocol_handlers); 69 std::swap(protocol_handlers_, *protocol_handlers);
70 70
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 scoped_refptr<base::SingleThreadTaskRunner> 192 scoped_refptr<base::SingleThreadTaskRunner>
193 ShellURLRequestContextGetter::GetNetworkTaskRunner() const { 193 ShellURLRequestContextGetter::GetNetworkTaskRunner() const {
194 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO); 194 return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
195 } 195 }
196 196
197 net::HostResolver* ShellURLRequestContextGetter::host_resolver() { 197 net::HostResolver* ShellURLRequestContextGetter::host_resolver() {
198 return url_request_context_->host_resolver(); 198 return url_request_context_->host_resolver();
199 } 199 }
200 200
201 } // namespace content 201 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main_parts.cc ('k') | content/shell/webkit_test_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698