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 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "net/base/host_resolver_proc.h" | |
17 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
| 17 #include "net/dns/host_resolver_proc.h" |
18 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
19 | 19 |
20 class PrefRegistrySimple; | 20 class PrefRegistrySimple; |
21 | 21 |
22 // This object is responsible for determining whether the user is on a network | 22 // This object is responsible for determining whether the user is on a network |
23 // that redirects requests for intranet hostnames to another site, and if so, | 23 // that redirects requests for intranet hostnames to another site, and if so, |
24 // tracking what that site is (including across restarts via a pref). For | 24 // tracking what that site is (including across restarts via a pref). For |
25 // example, the user's ISP might convert a request for "http://query/" into a | 25 // example, the user's ISP might convert a request for "http://query/" into a |
26 // 302 redirect to "http://isp.domain.com/search?q=query" in order to display | 26 // 302 redirect to "http://isp.domain.com/search?q=query" in order to display |
27 // custom pages on typos, nonexistent sites, etc. | 27 // custom pages on typos, nonexistent sites, etc. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 net::AddressFamily address_family, | 92 net::AddressFamily address_family, |
93 net::HostResolverFlags host_resolver_flags, | 93 net::HostResolverFlags host_resolver_flags, |
94 net::AddressList* addrlist, | 94 net::AddressList* addrlist, |
95 int* os_error) OVERRIDE; | 95 int* os_error) OVERRIDE; |
96 | 96 |
97 private: | 97 private: |
98 virtual ~IntranetRedirectHostResolverProc() {} | 98 virtual ~IntranetRedirectHostResolverProc() {} |
99 }; | 99 }; |
100 | 100 |
101 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 101 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
OLD | NEW |