| OLD | NEW |
| 1 // Copyright (c) 2010 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> |
| 11 #include <vector> | 11 #include <vector> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // Called when the seven second startup sleep or the one second network | 64 // Called when the seven second startup sleep or the one second network |
| 65 // switch sleep has finished. Runs any pending fetch. | 65 // switch sleep has finished. Runs any pending fetch. |
| 66 void FinishSleep(); | 66 void FinishSleep(); |
| 67 | 67 |
| 68 // Starts the fetches to determine the redirect URL if we can currently do so. | 68 // Starts the fetches to determine the redirect URL if we can currently do so. |
| 69 void StartFetchesIfPossible(); | 69 void StartFetchesIfPossible(); |
| 70 | 70 |
| 71 // URLFetcher::Delegate | 71 // URLFetcher::Delegate |
| 72 virtual void OnURLFetchComplete(const URLFetcher* source, | 72 virtual void OnURLFetchComplete(const URLFetcher* source, |
| 73 const GURL& url, | 73 const GURL& url, |
| 74 const URLRequestStatus& status, | 74 const net::URLRequestStatus& status, |
| 75 int response_code, | 75 int response_code, |
| 76 const ResponseCookies& cookies, | 76 const ResponseCookies& cookies, |
| 77 const std::string& data); | 77 const std::string& data); |
| 78 | 78 |
| 79 // NotificationObserver | 79 // NotificationObserver |
| 80 virtual void Observe(NotificationType type, | 80 virtual void Observe(NotificationType type, |
| 81 const NotificationSource& source, | 81 const NotificationSource& source, |
| 82 const NotificationDetails& details); | 82 const NotificationDetails& details); |
| 83 | 83 |
| 84 // NetworkChangeNotifier::Observer | 84 // NetworkChangeNotifier::Observer |
| (...skipping 22 matching lines...) Expand all Loading... |
| 107 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); | 107 explicit IntranetRedirectHostResolverProc(net::HostResolverProc* previous); |
| 108 | 108 |
| 109 virtual int Resolve(const std::string& host, | 109 virtual int Resolve(const std::string& host, |
| 110 net::AddressFamily address_family, | 110 net::AddressFamily address_family, |
| 111 net::HostResolverFlags host_resolver_flags, | 111 net::HostResolverFlags host_resolver_flags, |
| 112 net::AddressList* addrlist, | 112 net::AddressList* addrlist, |
| 113 int* os_error); | 113 int* os_error); |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 116 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
| OLD | NEW |