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_GOOGLE_GOOGLE_URL_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
6 #define CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ | 6 #define CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "chrome/browser/profiles/profile_keyed_service.h" | 15 #include "chrome/browser/profiles/profile_keyed_service.h" |
16 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" | 16 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h" |
| 17 #include "content/public/browser/notification_observer.h" |
| 18 #include "content/public/browser/notification_registrar.h" |
17 #include "content/public/common/url_fetcher.h" | 19 #include "content/public/common/url_fetcher.h" |
18 #include "content/public/common/url_fetcher_delegate.h" | 20 #include "content/public/common/url_fetcher_delegate.h" |
19 #include "content/public/browser/notification_observer.h" | |
20 #include "content/public/browser/notification_registrar.h" | |
21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
22 #include "net/base/network_change_notifier.h" | 22 #include "net/base/network_change_notifier.h" |
23 | 23 |
24 class GoogleURLTrackerInfoBarDelegate; | 24 class GoogleURLTrackerInfoBarDelegate; |
25 class PrefService; | 25 class PrefService; |
26 class Profile; | 26 class Profile; |
27 | 27 |
28 namespace content { | 28 namespace content { |
29 class NavigationController; | 29 class NavigationController; |
30 class WebContents; | 30 class WebContents; |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 // Called when the five second startup sleep has finished. Runs any pending | 112 // Called when the five second startup sleep has finished. Runs any pending |
113 // fetch. | 113 // fetch. |
114 void FinishSleep(); | 114 void FinishSleep(); |
115 | 115 |
116 // Starts the fetch of the up-to-date Google URL if we actually want to fetch | 116 // Starts the fetch of the up-to-date Google URL if we actually want to fetch |
117 // it and can currently do so. | 117 // it and can currently do so. |
118 void StartFetchIfDesirable(); | 118 void StartFetchIfDesirable(); |
119 | 119 |
120 // content::URLFetcherDelegate: | 120 // content::URLFetcherDelegate: |
121 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; | 121 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE; |
122 | 122 |
123 // content::NotificationObserver: | 123 // content::NotificationObserver: |
124 virtual void Observe(int type, | 124 virtual void Observe(int type, |
125 const content::NotificationSource& source, | 125 const content::NotificationSource& source, |
126 const content::NotificationDetails& details) OVERRIDE; | 126 const content::NotificationDetails& details) OVERRIDE; |
127 | 127 |
128 // NetworkChangeNotifier::IPAddressObserver: | 128 // NetworkChangeNotifier::IPAddressObserver: |
129 virtual void OnIPAddressChanged() OVERRIDE; | 129 virtual void OnIPAddressChanged() OVERRIDE; |
130 | 130 |
131 // ProfileKeyedService: | 131 // ProfileKeyedService: |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 private: | 233 private: |
234 // ConfirmInfoBarDelegate: | 234 // ConfirmInfoBarDelegate: |
235 virtual string16 GetMessageText() const OVERRIDE; | 235 virtual string16 GetMessageText() const OVERRIDE; |
236 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 236 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
237 | 237 |
238 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); | 238 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); |
239 }; | 239 }; |
240 | 240 |
241 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ | 241 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
OLD | NEW |