OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "chrome/common/net/url_fetcher.h" | 13 #include "chrome/common/net/url_fetcher.h" |
| 14 #include "chrome/common/notification_observer.h" |
14 #include "chrome/common/notification_registrar.h" | 15 #include "chrome/common/notification_registrar.h" |
15 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
16 #include "net/base/host_resolver_proc.h" | 17 #include "net/base/host_resolver_proc.h" |
17 #include "net/base/network_change_notifier.h" | 18 #include "net/base/network_change_notifier.h" |
18 | 19 |
19 class PrefService; | 20 class PrefService; |
20 | 21 |
21 // 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 |
22 // 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, |
23 // 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 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); | 107 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); |
107 | 108 |
108 virtual int Resolve(const std::string& host, | 109 virtual int Resolve(const std::string& host, |
109 net::AddressFamily address_family, | 110 net::AddressFamily address_family, |
110 net::HostResolverFlags host_resolver_flags, | 111 net::HostResolverFlags host_resolver_flags, |
111 net::AddressList* addrlist, | 112 net::AddressList* addrlist, |
112 int* os_error); | 113 int* os_error); |
113 }; | 114 }; |
114 | 115 |
115 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 116 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
OLD | NEW |