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

Side by Side Diff: chrome/browser/extensions/api/dns/host_resolver_wrapper.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) 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 #ifndef CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "net/base/host_resolver.h" 9 #include "net/dns/host_resolver.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 // Used for testing. In production code, this class does nothing interesting. 13 // Used for testing. In production code, this class does nothing interesting.
14 // This class is a singleton that holds a pointer to a mock HostResolver, or 14 // This class is a singleton that holds a pointer to a mock HostResolver, or
15 // else to NULL. API classes that need to resolve hostnames ask this class for 15 // else to NULL. API classes that need to resolve hostnames ask this class for
16 // the correct HostResolver to use, passing in the one that they want to use, 16 // the correct HostResolver to use, passing in the one that they want to use,
17 // thereby avoiding most lifetime issues, and it will reply with either that 17 // thereby avoiding most lifetime issues, and it will reply with either that
18 // same one, or else the test version to use instead. 18 // same one, or else the test version to use instead.
19 // 19 //
(...skipping 17 matching lines...) Expand all
37 friend struct DefaultSingletonTraits<HostResolverWrapper>; 37 friend struct DefaultSingletonTraits<HostResolverWrapper>;
38 38
39 net::HostResolver* resolver_; 39 net::HostResolver* resolver_;
40 40
41 DISALLOW_COPY_AND_ASSIGN(HostResolverWrapper); 41 DISALLOW_COPY_AND_ASSIGN(HostResolverWrapper);
42 }; 42 };
43 43
44 } // namespace extensions 44 } // namespace extensions
45 45
46 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_ 46 #endif // CHROME_BROWSER_EXTENSIONS_API_DNS_HOST_RESOLVER_WRAPPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698