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

Side by Side Diff: net/base/host_resolver.cc

Issue 3452030: FBTF: Moves code to the headers. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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
« no previous file with comments | « net/base/host_resolver.h ('k') | net/base/x509_cert_types.h » ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 "net/base/host_resolver.h" 5 #include "net/base/host_resolver.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
10 10
11 namespace net { 11 namespace net {
12 12
13 HostResolver::RequestInfo::RequestInfo(const HostPortPair& host_port_pair) 13 HostResolver::RequestInfo::RequestInfo(const HostPortPair& host_port_pair)
14 : host_port_pair_(host_port_pair), 14 : host_port_pair_(host_port_pair),
15 address_family_(ADDRESS_FAMILY_UNSPECIFIED), 15 address_family_(ADDRESS_FAMILY_UNSPECIFIED),
16 host_resolver_flags_(0), 16 host_resolver_flags_(0),
17 allow_cached_response_(true), 17 allow_cached_response_(true),
18 is_speculative_(false), 18 is_speculative_(false),
19 priority_(MEDIUM) { 19 priority_(MEDIUM) {
20 } 20 }
21 21
22 HostResolver::HostResolver() {
23 }
24
25 HostResolver::~HostResolver() {
26 }
27
22 SingleRequestHostResolver::SingleRequestHostResolver(HostResolver* resolver) 28 SingleRequestHostResolver::SingleRequestHostResolver(HostResolver* resolver)
23 : resolver_(resolver), 29 : resolver_(resolver),
24 cur_request_(NULL), 30 cur_request_(NULL),
25 cur_request_callback_(NULL), 31 cur_request_callback_(NULL),
26 ALLOW_THIS_IN_INITIALIZER_LIST( 32 ALLOW_THIS_IN_INITIALIZER_LIST(
27 callback_(this, &SingleRequestHostResolver::OnResolveCompletion)) { 33 callback_(this, &SingleRequestHostResolver::OnResolveCompletion)) {
28 DCHECK(resolver_ != NULL); 34 DCHECK(resolver_ != NULL);
29 } 35 }
30 36
31 SingleRequestHostResolver::~SingleRequestHostResolver() { 37 SingleRequestHostResolver::~SingleRequestHostResolver() {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 76
71 // Clear the outstanding request information. 77 // Clear the outstanding request information.
72 cur_request_ = NULL; 78 cur_request_ = NULL;
73 cur_request_callback_ = NULL; 79 cur_request_callback_ = NULL;
74 80
75 // Call the user's original callback. 81 // Call the user's original callback.
76 callback->Run(result); 82 callback->Run(result);
77 } 83 }
78 84
79 } // namespace net 85 } // namespace net
OLDNEW
« no previous file with comments | « net/base/host_resolver.h ('k') | net/base/x509_cert_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698