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 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_ | |
OLD | NEW |