| 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_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 const GURL& currently_committed_url, | 195 const GURL& currently_committed_url, |
| 196 content::NavigationHandle* navigation_handle, | 196 content::NavigationHandle* navigation_handle, |
| 197 UserInitiatedInfo user_initiated_info, | 197 UserInitiatedInfo user_initiated_info, |
| 198 int aborted_chain_size, | 198 int aborted_chain_size, |
| 199 int aborted_chain_size_same_url); | 199 int aborted_chain_size_same_url); |
| 200 ~PageLoadTracker(); | 200 ~PageLoadTracker(); |
| 201 void Redirect(content::NavigationHandle* navigation_handle); | 201 void Redirect(content::NavigationHandle* navigation_handle); |
| 202 void WillProcessNavigationResponse( | 202 void WillProcessNavigationResponse( |
| 203 content::NavigationHandle* navigation_handle); | 203 content::NavigationHandle* navigation_handle); |
| 204 void Commit(content::NavigationHandle* navigation_handle); | 204 void Commit(content::NavigationHandle* navigation_handle); |
| 205 void DidFinishSubFrameNavigation( |
| 206 content::NavigationHandle* navigation_handle); |
| 205 void FailedProvisionalLoad(content::NavigationHandle* navigation_handle, | 207 void FailedProvisionalLoad(content::NavigationHandle* navigation_handle, |
| 206 base::TimeTicks failed_load_time); | 208 base::TimeTicks failed_load_time); |
| 207 void WebContentsHidden(); | 209 void WebContentsHidden(); |
| 208 void WebContentsShown(); | 210 void WebContentsShown(); |
| 209 | 211 |
| 210 void OnInputEvent(const blink::WebInputEvent& event); | 212 void OnInputEvent(const blink::WebInputEvent& event); |
| 211 | 213 |
| 212 // Flush any buffered metrics, as part of the metrics subsystem persisting | 214 // Flush any buffered metrics, as part of the metrics subsystem persisting |
| 213 // metrics as the application goes into the background. The application may be | 215 // metrics as the application goes into the background. The application may be |
| 214 // killed at any time after this method is invoked without further | 216 // killed at any time after this method is invoked without further |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 PageLoadMetricsEmbedderInterface* const embedder_interface_; | 402 PageLoadMetricsEmbedderInterface* const embedder_interface_; |
| 401 | 403 |
| 402 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; | 404 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; |
| 403 | 405 |
| 404 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); | 406 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); |
| 405 }; | 407 }; |
| 406 | 408 |
| 407 } // namespace page_load_metrics | 409 } // namespace page_load_metrics |
| 408 | 410 |
| 409 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 411 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
| OLD | NEW |