OLD | NEW |
---|---|
(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 | |
jochen (gone - plz use gerrit)
2015/04/22 14:51:36
nit. only one empty line
benwells
2015/04/23 00:34:33
Done.
| |
36 DISALLOW_COPY_AND_ASSIGN(SiteEngagementHelper); | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_ENGAGEMENT_SITE_ENGAGEMENT_HELPER_H_ | |
OLD | NEW |