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

Side by Side Diff: chrome/browser/engagement/site_engagement_helper.h

Issue 1077063002: Implement a basic Site Engagement Score service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback Created 5 years, 8 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/engagement/OWNERS ('k') | chrome/browser/engagement/site_engagement_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 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_ENGAGEMENT_SITE_ENGAGEMENT_HELPER_H_
6 #define CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_HELPER_H_
7
8 #include "base/macros.h"
9 #include "content/public/browser/web_contents_observer.h"
10 #include "content/public/browser/web_contents_user_data.h"
11
12 namespace content {
13 class WebContents;
14 }
15
16 class GURL;
17
18 // Per-WebContents class to handle updating the site engagement scores for
19 // origins as the user navigates.
20 class SiteEngagementHelper
21 : public content::WebContentsObserver,
22 public content::WebContentsUserData<SiteEngagementHelper> {
23 public:
24 ~SiteEngagementHelper() override;
25
26 private:
27 explicit SiteEngagementHelper(content::WebContents* web_contents);
28 friend class content::WebContentsUserData<SiteEngagementHelper>;
29
30 // content::WebContentsObserver overrides.
31 void DidStartNavigationToPendingEntry(
32 const GURL& url,
33 content::NavigationController::ReloadType reload_type) override;
34
35 DISALLOW_COPY_AND_ASSIGN(SiteEngagementHelper);
36 };
37
38 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/engagement/OWNERS ('k') | chrome/browser/engagement/site_engagement_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698