Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(398)

Side by Side Diff: chrome/browser/google/chrome_google_url_tracker_client.h

Issue 808253006: Remove the GoogleURLTracker infobar functionality entirely. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/google/DEPS ('k') | chrome/browser/google/chrome_google_url_tracker_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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"
10 #include "content/public/browser/notification_registrar.h"
11 9
12 class Profile; 10 class Profile;
13 11
14 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient, 12 class ChromeGoogleURLTrackerClient : public GoogleURLTrackerClient {
15 public content::NotificationObserver {
16 public: 13 public:
17 explicit ChromeGoogleURLTrackerClient(Profile* profile); 14 explicit ChromeGoogleURLTrackerClient(Profile* profile);
18 ~ChromeGoogleURLTrackerClient() override; 15 ~ChromeGoogleURLTrackerClient() override;
19 16
20 // GoogleURLTrackerClient: 17 // GoogleURLTrackerClient:
21 void SetListeningForNavigationStart(bool listen) override;
22 bool IsListeningForNavigationStart() override;
23 bool IsBackgroundNetworkingEnabled() override; 18 bool IsBackgroundNetworkingEnabled() override;
24 PrefService* GetPrefs() override; 19 PrefService* GetPrefs() override;
25 net::URLRequestContextGetter* GetRequestContext() override; 20 net::URLRequestContextGetter* GetRequestContext() override;
26 21
27 private: 22 private:
28 // content::NotificationObserver:
29 void Observe(int type,
30 const content::NotificationSource& source,
31 const content::NotificationDetails& details) override;
32
33 Profile* profile_; 23 Profile* profile_;
34 24
35 content::NotificationRegistrar registrar_;
36
37 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient); 25 DISALLOW_COPY_AND_ASSIGN(ChromeGoogleURLTrackerClient);
38 }; 26 };
39 27
40 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_ 28 #endif // CHROME_BROWSER_GOOGLE_CHROME_GOOGLE_URL_TRACKER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/google/DEPS ('k') | chrome/browser/google/chrome_google_url_tracker_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698