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 25 matching lines...) Expand all Loading... |
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 void WasShown() override; | 42 void WasShown() override; |
43 void WasHidden() override; | 43 void WasHidden() override; |
44 void RenderFrameHostChanged(content::RenderFrameHost* old_host, | 44 void RenderFrameHostChanged(content::RenderFrameHost* old_host, |
45 content::RenderFrameHost* new_host) override; | 45 content::RenderFrameHost* new_host) override; |
| 46 void DidFinishNavigation( |
| 47 content::NavigationHandle* navigation_handle) override; |
46 | 48 |
47 private: | 49 private: |
48 friend class content::WebContentsUserData<DataUseWebContentsObserver>; | 50 friend class content::WebContentsUserData<DataUseWebContentsObserver>; |
49 DataUseWebContentsObserver(content::WebContents* web_contents, | 51 DataUseWebContentsObserver(content::WebContents* web_contents, |
50 ChromeDataUseAscriberService* service); | 52 ChromeDataUseAscriberService* service); |
51 ChromeDataUseAscriberService* const service_; | 53 ChromeDataUseAscriberService* const service_; |
52 | 54 |
53 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver); | 55 DISALLOW_COPY_AND_ASSIGN(DataUseWebContentsObserver); |
54 }; | 56 }; |
55 | 57 |
56 } // namespace data_use_measurement | 58 } // namespace data_use_measurement |
57 | 59 |
58 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ | 60 #endif // CHROME_BROWSER_DATA_USE_MEASUREMENT_DATA_USE_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |