OLD | NEW |
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 CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 5 #ifndef CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
6 #define CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 6 #define CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 // over the network. It captures the requests and causes them to fail. | 87 // over the network. It captures the requests and causes them to fail. |
88 class IntranetRedirectHostResolverProc : public net::HostResolverProc { | 88 class IntranetRedirectHostResolverProc : public net::HostResolverProc { |
89 public: | 89 public: |
90 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); | 90 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); |
91 | 91 |
92 virtual int Resolve(const std::string& host, | 92 virtual int Resolve(const std::string& host, |
93 net::AddressFamily address_family, | 93 net::AddressFamily address_family, |
94 net::HostResolverFlags host_resolver_flags, | 94 net::HostResolverFlags host_resolver_flags, |
95 net::AddressList* addrlist, | 95 net::AddressList* addrlist, |
96 int* os_error) OVERRIDE; | 96 int* os_error) OVERRIDE; |
| 97 |
| 98 private: |
| 99 virtual ~IntranetRedirectHostResolverProc() {} |
97 }; | 100 }; |
98 | 101 |
99 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 102 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
OLD | NEW |