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.
5 #ifndef CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_
6 #define CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_
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"
14 class ChromeGoogleURLTrackerClient
: public GoogleURLTrackerClient
,
15 public content::NotificationObserver
{
17 explicit ChromeGoogleURLTrackerClient(Profile
* profile
);
18 virtual ~ChromeGoogleURLTrackerClient();
20 // GoogleURLTrackerClient:
21 virtual void SetListeningForNavigationStart(bool listen
) OVERRIDE
;
22 virtual bool IsListeningForNavigationStart() OVERRIDE
;
23 virtual bool IsBackgroundNetworkingEnabled() OVERRIDE
;
24 virtual PrefService
* GetPrefs() OVERRIDE
;
25 virtual net::URLRequestContextGetter
* GetRequestContext() OVERRIDE
;
28 // content::NotificationObserver:
29 virtual void Observe(int type
,
30 const content::NotificationSource
& source
,
31 const content::NotificationDetails
& details
) OVERRIDE
;
35 content::NotificationRegistrar registrar_
;
37 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient
);
40 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_