OLD | NEW |
1 // Copyright (c) 2011 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_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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 | 99 |
100 // Called when the five second startup sleep has finished. Runs any pending | 100 // Called when the five second startup sleep has finished. Runs any pending |
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 // content::URLFetcherDelegate | 108 // content::URLFetcherDelegate |
109 virtual void OnURLFetchComplete(const content::URLFetcher* source); | 109 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; |
110 | 110 |
111 // content::NotificationObserver | 111 // content::NotificationObserver |
112 virtual void Observe(int type, | 112 virtual void Observe(int type, |
113 const content::NotificationSource& source, | 113 const content::NotificationSource& source, |
114 const content::NotificationDetails& details); | 114 const content::NotificationDetails& details) OVERRIDE; |
115 | 115 |
116 // NetworkChangeNotifier::IPAddressObserver | 116 // NetworkChangeNotifier::IPAddressObserver |
117 virtual void OnIPAddressChanged(); | 117 virtual void OnIPAddressChanged() OVERRIDE; |
118 | 118 |
119 void SearchCommitted(); | 119 void SearchCommitted(); |
120 void OnNavigationPending(const content::NotificationSource& source, | 120 void OnNavigationPending(const content::NotificationSource& source, |
121 const GURL& pending_url); | 121 const GURL& pending_url); |
122 void OnNavigationCommittedOrTabClosed(TabContents* tab_contents, | 122 void OnNavigationCommittedOrTabClosed(TabContents* tab_contents, |
123 int type); | 123 int type); |
124 void ShowGoogleURLInfoBarIfNecessary(TabContents* tab_contents); | 124 void ShowGoogleURLInfoBarIfNecessary(TabContents* tab_contents); |
125 | 125 |
126 content::NotificationRegistrar registrar_; | 126 content::NotificationRegistrar registrar_; |
127 InfobarCreator infobar_creator_; | 127 InfobarCreator infobar_creator_; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 virtual string16 GetMessageText() const OVERRIDE; | 179 virtual string16 GetMessageText() const OVERRIDE; |
180 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 180 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
181 | 181 |
182 // Returns the portion of the appropriate hostname to display. | 182 // Returns the portion of the appropriate hostname to display. |
183 string16 GetHost(bool new_host) const; | 183 string16 GetHost(bool new_host) const; |
184 | 184 |
185 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); | 185 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); |
186 }; | 186 }; |
187 | 187 |
188 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ | 188 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
OLD | NEW |