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

Side by Side Diff: chrome/browser/google/google_url_tracker_navigation_helper_impl.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
OLDNEW
(Empty)
1 // Copyright (c) 2012 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_GOOGLE_URL_TRACKER_NAVIGATION_HELPER_IMPL_H_
6 #define CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_NAVIGATION_HELPER_IMPL_H_
7
8 #include "components/google/core/browser/google_url_tracker_navigation_helper.h"
9 #include "content/public/browser/notification_observer.h"
10 #include "content/public/browser/notification_registrar.h"
11 #include "url/gurl.h"
12
13 namespace content {
14 class WebContents;
15 }
16
17 class GoogleURLTrackerNavigationHelperImpl
18 : public GoogleURLTrackerNavigationHelper,
19 public content::NotificationObserver {
20 public:
21 GoogleURLTrackerNavigationHelperImpl(content::WebContents* web_contents,
22 GoogleURLTracker* tracker);
23 ~GoogleURLTrackerNavigationHelperImpl() override;
24
25 // GoogleURLTrackerNavigationHelper:
26 void SetListeningForNavigationCommit(bool listen) override;
27 bool IsListeningForNavigationCommit() override;
28 void SetListeningForTabDestruction(bool listen) override;
29 bool IsListeningForTabDestruction() override;
30 void OpenURL(GURL url,
31 WindowOpenDisposition disposition,
32 bool user_clicked_on_link) override;
33
34 private:
35 // content::NotificationObserver:
36 void Observe(int type,
37 const content::NotificationSource& source,
38 const content::NotificationDetails& details) override;
39
40 content::WebContents* web_contents_;
41 content::NotificationRegistrar registrar_;
42
43 DISALLOW_COPY_AND_ASSIGN(GoogleURLTrackerNavigationHelperImpl);
44 };
45
46 #endif // CHROME_BROWSER_GOOGLE_GOOGLE_URL_TRACKER_NAVIGATION_HELPER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698