OLD | NEW |
---|---|
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ |
6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ | 6 #define CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "content/public/browser/web_contents_observer.h" | 9 #include "content/public/browser/web_contents_observer.h" |
10 #include "content/public/browser/web_contents_user_data.h" | 10 #include "content/public/browser/web_contents_user_data.h" |
(...skipping 22 matching lines...) Expand all Loading... | |
33 ~DataUseWebContentsObserver() override; | 33 ~DataUseWebContentsObserver() override; |
34 | 34 |
35 // WebContentsObserver implementation: | 35 // WebContentsObserver implementation: |
36 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; | 36 void RenderFrameCreated(content::RenderFrameHost* render_frame_host) override; |
37 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; | 37 void RenderFrameDeleted(content::RenderFrameHost* render_frame_host) override; |
38 void DidStartNavigation( | 38 void DidStartNavigation( |
39 content::NavigationHandle* navigation_handle) override; | 39 content::NavigationHandle* navigation_handle) override; |
40 void ReadyToCommitNavigation( | 40 void ReadyToCommitNavigation( |
41 content::NavigationHandle* navigation_handle) override; | 41 content::NavigationHandle* navigation_handle) override; |
42 | 42 |
43 // Called every time the WebContents changes visibility. | |
RyanSturm
2016/12/13 22:04:20
Can you remove this comment and delete the whitesp
Raj
2016/12/14 23:00:50
Done.
| |
44 void WasShown(); | |
45 void WasHidden(); | |
46 | |
47 void RenderFrameHostChanged(content::RenderFrameHost* old_host, | |
48 content::RenderFrameHost* new_host); | |
49 | |
43 private: | 50 private: |
44 friend class content::WebContentsUserData<DataUseWebContentsObserver>; | 51 friend class content::WebContentsUserData<DataUseWebContentsObserver>; |
45 DataUseWebContentsObserver(content::WebContents* web_contents, | 52 DataUseWebContentsObserver(content::WebContents* web_contents, |
46 ChromeDataUseAscriberService* service); | 53 ChromeDataUseAscriberService* service); |
47 ChromeDataUseAscriberService* const service_; | 54 ChromeDataUseAscriberService* const service_; |
48 | 55 |
49 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver); | 56 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver); |
50 }; | 57 }; |
51 | 58 |
52 } // namespace data_use_measurement | 59 } // namespace data_use_measurement |
53 | 60 |
54 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ | 61 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |