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/macros.h" |
12 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
13 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
15 #include "net/base/network_change_notifier.h" | 16 #include "net/base/network_change_notifier.h" |
16 #include "net/dns/host_resolver_proc.h" | 17 #include "net/dns/host_resolver_proc.h" |
17 #include "net/url_request/url_fetcher_delegate.h" | 18 #include "net/url_request/url_fetcher_delegate.h" |
18 #include "url/gurl.h" | 19 #include "url/gurl.h" |
19 | 20 |
20 class PrefRegistrySimple; | 21 class PrefRegistrySimple; |
21 | 22 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 std::vector<GURL> resulting_origins_; | 73 std::vector<GURL> resulting_origins_; |
73 bool in_sleep_; // True if we're in the seven-second "no fetching" period | 74 bool in_sleep_; // True if we're in the seven-second "no fetching" period |
74 // that begins at browser start, or the one-second "no | 75 // that begins at browser start, or the one-second "no |
75 // fetching" period that begins after network switches. | 76 // fetching" period that begins after network switches. |
76 base::WeakPtrFactory<IntranetRedirectDetector> weak_ptr_factory_; | 77 base::WeakPtrFactory<IntranetRedirectDetector> weak_ptr_factory_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(IntranetRedirectDetector); | 79 DISALLOW_COPY_AND_ASSIGN(IntranetRedirectDetector); |
79 }; | 80 }; |
80 | 81 |
81 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ | 82 #endif // CHROME_BROWSER_INTRANET_REDIRECT_DETECTOR_H_ |
OLD | NEW |