OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
| 7 |
| 8 #include "components/google/core/browser/google_url_tracker_client.h" |
| 9 #include "content/public/browser/notification_observer.h" |
| 10 #include "content/public/browser/notification_registrar.h" |
| 11 |
| 12 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient, |
| 13 public content::NotificationObserver { |
| 14 public: |
| 15 ChromeGoogleURLTrackerClient(); |
| 16 virtual ~ChromeGoogleURLTrackerClient(); |
| 17 |
| 18 // GoogleURLTrackerClient: |
| 19 virtual void SetListeningForNavigationStart(bool listen) OVERRIDE; |
| 20 virtual bool IsListeningForNavigationStart() OVERRIDE; |
| 21 |
| 22 private: |
| 23 // content::NotificationObserver: |
| 24 virtual void Observe(int type, |
| 25 const content::NotificationSource& source, |
| 26 const content::NotificationDetails& details) OVERRIDE; |
| 27 |
| 28 content::NotificationRegistrar registrar_; |
| 29 |
| 30 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
OLD | NEW |