OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
7 | 7 |
8 #include "components/google/core/browser/google_url_tracker_client.h" | 8 #include "components/google/core/browser/google_url_tracker_client.h" |
9 #include "content/public/browser/notification_observer.h" | 9 #include "content/public/browser/notification_observer.h" |
10 #include "content/public/browser/notification_registrar.h" | 10 #include "content/public/browser/notification_registrar.h" |
11 | 11 |
12 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient, | 12 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient, |
13 public content::NotificationObserver { | 13 public content::NotificationObserver { |
14 public: | 14 public: |
15 ChromeGoogleURLTrackerClient(); | 15 ChromeGoogleURLTrackerClient(); |
16 virtual ~ChromeGoogleURLTrackerClient(); | 16 virtual ~ChromeGoogleURLTrackerClient(); |
17 | 17 |
18 // GoogleURLTrackerClient: | 18 // GoogleURLTrackerClient: |
19 virtual void SetListeningForNavigationStart(bool listen) OVERRIDE; | 19 virtual void SetListeningForNavigationStart(bool listen) OVERRIDE; |
20 virtual bool IsListeningForNavigationStart() OVERRIDE; | 20 virtual bool IsListeningForNavigationStart() OVERRIDE; |
| 21 virtual bool IsBackgroundNetworkingEnabled() OVERRIDE; |
21 | 22 |
22 private: | 23 private: |
23 // content::NotificationObserver: | 24 // content::NotificationObserver: |
24 virtual void Observe(int type, | 25 virtual void Observe(int type, |
25 const content::NotificationSource& source, | 26 const content::NotificationSource& source, |
26 const content::NotificationDetails& details) OVERRIDE; | 27 const content::NotificationDetails& details) OVERRIDE; |
27 | 28 |
28 content::NotificationRegistrar registrar_; | 29 content::NotificationRegistrar registrar_; |
29 | 30 |
30 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); | 31 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); |
31 }; | 32 }; |
32 | 33 |
33 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ | 34 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ |
OLD | NEW |