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 | |
13 : public GoogleURLTrackerClient, | |
14 public content::NotificationObserver { | |
Peter Kasting
2014/05/14 23:30:28
Nit: Wrap like:
class ChromeGoogleURLTrackerClien
blundell
2014/05/15 07:58:03
Done.
| |
15 public: | |
16 explicit ChromeGoogleURLTrackerClient(); | |
17 virtual ~ChromeGoogleURLTrackerClient(); | |
18 | |
19 // GoogleURLTrackerClient. | |
Peter Kasting
2014/05/14 23:30:28
Nit: There's no rule about this, but the most comm
blundell
2014/05/15 07:58:03
Done.
| |
20 virtual void SetGoogleURLTracker(GoogleURLTracker* tracker) OVERRIDE; | |
21 virtual void SetListeningForNavigationStart(bool listen) OVERRIDE; | |
22 virtual bool IsListeningForNavigationStart() OVERRIDE; | |
23 | |
24 private: | |
25 // content::NotificationObserver: | |
26 virtual void Observe(int type, | |
27 const content::NotificationSource& source, | |
28 const content::NotificationDetails& details) OVERRIDE; | |
29 | |
30 GoogleURLTracker* tracker_; | |
31 content::NotificationRegistrar registrar_; | |
32 }; | |
Peter Kasting
2014/05/14 23:30:28
Nit: DISALLOW_COPY_AND_ASSIGN
blundell
2014/05/15 07:58:03
Done.
| |
33 | |
34 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | |
OLD | NEW |