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

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: Fix stuff 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
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 class SiteEngagementHelper
raymes 2015/04/16 01:13:55 nit: Could you add a comment for this class?
benwells 2015/04/16 05:15:27 Done.
19 : public content::WebContentsObserver,
20 public content::WebContentsUserData<SiteEngagementHelper> {
21 public:
22 ~SiteEngagementHelper() override;
23
raymes 2015/04/16 01:13:55 nit: // WebContentsObserver overrides.
benwells 2015/04/16 05:15:27 Done. I also made it private.
24 void DidStartNavigationToPendingEntry(
25 const GURL& url,
26 content::NavigationController::ReloadType reload_type) override;
27
28 private:
29 explicit SiteEngagementHelper(content::WebContents* web_contents);
30 friend class content::WebContentsUserData<SiteEngagementHelper>;
31
32 DISALLOW_COPY_AND_ASSIGN(SiteEngagementHelper);
33 };
34
35 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698