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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 const GURL& currently_committed_url, | 138 const GURL& currently_committed_url, |
139 content::NavigationHandle* navigation_handle, | 139 content::NavigationHandle* navigation_handle, |
140 UserInitiatedInfo user_initiated_info, | 140 UserInitiatedInfo user_initiated_info, |
141 int aborted_chain_size, | 141 int aborted_chain_size, |
142 int aborted_chain_size_same_url); | 142 int aborted_chain_size_same_url); |
143 ~PageLoadTracker(); | 143 ~PageLoadTracker(); |
144 void Redirect(content::NavigationHandle* navigation_handle); | 144 void Redirect(content::NavigationHandle* navigation_handle); |
145 void WillProcessNavigationResponse( | 145 void WillProcessNavigationResponse( |
146 content::NavigationHandle* navigation_handle); | 146 content::NavigationHandle* navigation_handle); |
147 void Commit(content::NavigationHandle* navigation_handle); | 147 void Commit(content::NavigationHandle* navigation_handle); |
| 148 void DidCommitSubFrame(content::NavigationHandle* navigation_handle); |
148 void FailedProvisionalLoad(content::NavigationHandle* navigation_handle, | 149 void FailedProvisionalLoad(content::NavigationHandle* navigation_handle, |
149 base::TimeTicks failed_load_time); | 150 base::TimeTicks failed_load_time); |
150 void WebContentsHidden(); | 151 void WebContentsHidden(); |
151 void WebContentsShown(); | 152 void WebContentsShown(); |
152 | 153 |
153 void OnInputEvent(const blink::WebInputEvent& event); | 154 void OnInputEvent(const blink::WebInputEvent& event); |
154 | 155 |
155 // Flush any buffered metrics, as part of the metrics subsystem persisting | 156 // Flush any buffered metrics, as part of the metrics subsystem persisting |
156 // metrics as the application goes into the background. The application may be | 157 // metrics as the application goes into the background. The application may be |
157 // killed at any time after this method is invoked without further | 158 // killed at any time after this method is invoked without further |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
334 PageLoadMetricsEmbedderInterface* const embedder_interface_; | 335 PageLoadMetricsEmbedderInterface* const embedder_interface_; |
335 | 336 |
336 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; | 337 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; |
337 | 338 |
338 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); | 339 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); |
339 }; | 340 }; |
340 | 341 |
341 } // namespace page_load_metrics | 342 } // namespace page_load_metrics |
342 | 343 |
343 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 344 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
OLD | NEW |