OLD | NEW |
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 NET_DNS_HOST_RESOLVER_PROC_H_ | 5 #ifndef NET_DNS_HOST_RESOLVER_PROC_H_ |
6 #define NET_DNS_HOST_RESOLVER_PROC_H_ | 6 #define NET_DNS_HOST_RESOLVER_PROC_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 int* os_error); | 92 int* os_error); |
93 | 93 |
94 // Wraps call to SystemHostResolverCall as an instance of HostResolverProc. | 94 // Wraps call to SystemHostResolverCall as an instance of HostResolverProc. |
95 class NET_EXPORT_PRIVATE SystemHostResolverProc : public HostResolverProc { | 95 class NET_EXPORT_PRIVATE SystemHostResolverProc : public HostResolverProc { |
96 public: | 96 public: |
97 SystemHostResolverProc(); | 97 SystemHostResolverProc(); |
98 virtual int Resolve(const std::string& hostname, | 98 virtual int Resolve(const std::string& hostname, |
99 AddressFamily address_family, | 99 AddressFamily address_family, |
100 HostResolverFlags host_resolver_flags, | 100 HostResolverFlags host_resolver_flags, |
101 AddressList* addr_list, | 101 AddressList* addr_list, |
102 int* os_error) OVERRIDE; | 102 int* os_error) override; |
103 protected: | 103 protected: |
104 virtual ~SystemHostResolverProc(); | 104 virtual ~SystemHostResolverProc(); |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc); | 106 DISALLOW_COPY_AND_ASSIGN(SystemHostResolverProc); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace net | 109 } // namespace net |
110 | 110 |
111 #endif // NET_DNS_HOST_RESOLVER_PROC_H_ | 111 #endif // NET_DNS_HOST_RESOLVER_PROC_H_ |
OLD | NEW |