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

Side by Side Diff: content/browser/resolve_proxy_msg_helper.cc

Issue 11273049: Revert 164120 - content/browser: Move more files into the content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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
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/browser/resolve_proxy_msg_helper.h" 5 #include "content/browser/resolve_proxy_msg_helper.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
11 #include "net/base/net_errors.h" 11 #include "net/base/net_errors.h"
12 #include "net/url_request/url_request_context.h" 12 #include "net/url_request/url_request_context.h"
13 #include "net/url_request/url_request_context_getter.h" 13 #include "net/url_request/url_request_context_getter.h"
14 14
15 namespace content {
16
17 ResolveProxyMsgHelper::ResolveProxyMsgHelper( 15 ResolveProxyMsgHelper::ResolveProxyMsgHelper(
18 net::URLRequestContextGetter* getter) 16 net::URLRequestContextGetter* getter)
19 : context_getter_(getter), 17 : context_getter_(getter),
20 proxy_service_(NULL) { 18 proxy_service_(NULL) {
21 } 19 }
22 20
23 ResolveProxyMsgHelper::ResolveProxyMsgHelper(net::ProxyService* proxy_service) 21 ResolveProxyMsgHelper::ResolveProxyMsgHelper(net::ProxyService* proxy_service)
24 : proxy_service_(proxy_service) { 22 : proxy_service_(proxy_service) {
25 } 23 }
26 24
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 int result = proxy_service_->ResolveProxy( 90 int result = proxy_service_->ResolveProxy(
93 req.url, &proxy_info_, 91 req.url, &proxy_info_,
94 base::Bind(&ResolveProxyMsgHelper::OnResolveProxyCompleted, 92 base::Bind(&ResolveProxyMsgHelper::OnResolveProxyCompleted,
95 base::Unretained(this)), 93 base::Unretained(this)),
96 &req.pac_req, net::BoundNetLog()); 94 &req.pac_req, net::BoundNetLog());
97 95
98 // Completed synchronously. 96 // Completed synchronously.
99 if (result != net::ERR_IO_PENDING) 97 if (result != net::ERR_IO_PENDING)
100 OnResolveProxyCompleted(result); 98 OnResolveProxyCompleted(result);
101 } 99 }
102
103 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/resolve_proxy_msg_helper.h ('k') | content/browser/resolve_proxy_msg_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698