| 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_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 <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // fetch. | 101 // fetch. |
| 102 void FinishSleep(); | 102 void FinishSleep(); |
| 103 | 103 |
| 104 // Starts the fetch of the up-to-date Google URL if we actually want to fetch | 104 // Starts the fetch of the up-to-date Google URL if we actually want to fetch |
| 105 // it and can currently do so. | 105 // it and can currently do so. |
| 106 void StartFetchIfDesirable(); | 106 void StartFetchIfDesirable(); |
| 107 | 107 |
| 108 // URLFetcher::Delegate | 108 // URLFetcher::Delegate |
| 109 virtual void OnURLFetchComplete(const URLFetcher *source, | 109 virtual void OnURLFetchComplete(const URLFetcher *source, |
| 110 const GURL& url, | 110 const GURL& url, |
| 111 const URLRequestStatus& status, | 111 const net::URLRequestStatus& status, |
| 112 int response_code, | 112 int response_code, |
| 113 const ResponseCookies& cookies, | 113 const ResponseCookies& cookies, |
| 114 const std::string& data); | 114 const std::string& data); |
| 115 | 115 |
| 116 // NotificationObserver | 116 // NotificationObserver |
| 117 virtual void Observe(NotificationType type, | 117 virtual void Observe(NotificationType type, |
| 118 const NotificationSource& source, | 118 const NotificationSource& source, |
| 119 const NotificationDetails& details); | 119 const NotificationDetails& details); |
| 120 | 120 |
| 121 // NetworkChangeNotifier::Observer | 121 // NetworkChangeNotifier::Observer |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 private: | 185 private: |
| 186 // ConfirmInfoBarDelegate | 186 // ConfirmInfoBarDelegate |
| 187 virtual string16 GetMessageText() const; | 187 virtual string16 GetMessageText() const; |
| 188 virtual int GetButtons() const; | 188 virtual int GetButtons() const; |
| 189 virtual string16 GetButtonLabel(InfoBarButton button) const; | 189 virtual string16 GetButtonLabel(InfoBarButton button) const; |
| 190 | 190 |
| 191 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); | 191 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); |
| 192 }; | 192 }; |
| 193 | 193 |
| 194 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ | 194 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
| OLD | NEW |