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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
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/api/infobars/confirm_infobar_delegate.h" | 15 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h" |
16 #include "chrome/browser/profiles/profile_keyed_service.h" | 16 #include "chrome/browser/profiles/profile_keyed_service.h" |
17 #include "content/public/browser/notification_observer.h" | 17 #include "content/public/browser/notification_observer.h" |
18 #include "content/public/browser/notification_registrar.h" | 18 #include "content/public/browser/notification_registrar.h" |
19 #include "content/public/browser/notification_source.h" | 19 #include "content/public/browser/notification_source.h" |
20 #include "googleurl/src/gurl.h" | 20 #include "googleurl/src/gurl.h" |
21 #include "net/base/network_change_notifier.h" | 21 #include "net/base/network_change_notifier.h" |
22 #include "net/url_request/url_fetcher.h" | 22 #include "net/url_request/url_fetcher.h" |
23 #include "net/url_request/url_fetcher_delegate.h" | 23 #include "net/url_request/url_fetcher_delegate.h" |
24 | 24 |
25 class GoogleURLTrackerInfoBarDelegate; | 25 class GoogleURLTrackerInfoBarDelegate; |
| 26 class InfoBarTabHelper; |
26 class PrefService; | 27 class PrefService; |
27 class Profile; | 28 class Profile; |
28 | 29 |
29 namespace content { | 30 namespace content { |
30 class NavigationController; | 31 class NavigationController; |
31 class WebContents; | 32 class WebContents; |
32 } | 33 } |
33 | 34 |
34 // This object is responsible for checking the Google URL once per network | 35 // This object is responsible for checking the Google URL once per network |
35 // change, and if necessary prompting the user to see if they want to change to | 36 // change, and if necessary prompting the user to see if they want to change to |
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 261 |
261 private: | 262 private: |
262 // ConfirmInfoBarDelegate: | 263 // ConfirmInfoBarDelegate: |
263 virtual string16 GetMessageText() const OVERRIDE; | 264 virtual string16 GetMessageText() const OVERRIDE; |
264 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; | 265 virtual string16 GetButtonLabel(InfoBarButton button) const OVERRIDE; |
265 | 266 |
266 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); | 267 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerInfoBarDelegate); |
267 }; | 268 }; |
268 | 269 |
269 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ | 270 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_H_ |
OLD | NEW |