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

Side by Side Diff: net/dns/mock_host_resolver.h

Issue 12518036: net: move host_resolver files from net/base to net/dns (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_BASE_MOCK_HOST_RESOLVER_H_ 5 #ifndef NET_DNS_MOCK_HOST_RESOLVER_H_
6 #define NET_BASE_MOCK_HOST_RESOLVER_H_ 6 #define NET_DNS_MOCK_HOST_RESOLVER_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 10
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/synchronization/waitable_event.h" 12 #include "base/synchronization/waitable_event.h"
13 #include "base/threading/non_thread_safe.h" 13 #include "base/threading/non_thread_safe.h"
14 #include "net/base/host_resolver.h" 14 #include "net/dns/host_resolver.h"
15 #include "net/base/host_resolver_proc.h" 15 #include "net/dns/host_resolver_proc.h"
16 16
17 namespace net { 17 namespace net {
18 18
19 class HostCache; 19 class HostCache;
20 class RuleBasedHostResolverProc; 20 class RuleBasedHostResolverProc;
21 21
22 // Fills |*addrlist| with a socket address for |host_list| which should be a 22 // Fills |*addrlist| with a socket address for |host_list| which should be a
23 // comma-separated list of IPv4 or IPv6 literal(s) without enclosing brackets. 23 // comma-separated list of IPv4 or IPv6 literal(s) without enclosing brackets.
24 // If |canonical_name| is non-empty it is used as the DNS canonical name for 24 // If |canonical_name| is non-empty it is used as the DNS canonical name for
25 // the host. Returns OK on success, ERR_UNEXPECTED otherwise. 25 // the host. Returns OK on success, ERR_UNEXPECTED otherwise.
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 244
245 void Init(HostResolverProc* proc); 245 void Init(HostResolverProc* proc);
246 246
247 private: 247 private:
248 scoped_refptr<HostResolverProc> current_proc_; 248 scoped_refptr<HostResolverProc> current_proc_;
249 scoped_refptr<HostResolverProc> previous_proc_; 249 scoped_refptr<HostResolverProc> previous_proc_;
250 }; 250 };
251 251
252 } // namespace net 252 } // namespace net
253 253
254 #endif // NET_BASE_MOCK_HOST_RESOLVER_H_ 254 #endif // NET_DNS_MOCK_HOST_RESOLVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698