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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 PageLoadMetricsEmbedderInterface* embedder_interface, | 156 PageLoadMetricsEmbedderInterface* embedder_interface, |
157 const GURL& currently_committed_url, | 157 const GURL& currently_committed_url, |
158 content::NavigationHandle* navigation_handle, | 158 content::NavigationHandle* navigation_handle, |
159 UserInitiatedInfo user_initiated_info, | 159 UserInitiatedInfo user_initiated_info, |
160 int aborted_chain_size, | 160 int aborted_chain_size, |
161 int aborted_chain_size_same_url); | 161 int aborted_chain_size_same_url); |
162 ~PageLoadTracker() override; | 162 ~PageLoadTracker() override; |
163 | 163 |
164 // PageLoadMetricsUpdateDispatcher::Client implementation: | 164 // PageLoadMetricsUpdateDispatcher::Client implementation: |
165 void OnTimingChanged() override; | 165 void OnTimingChanged() override; |
| 166 void OnSubFrameTimingChanged(const mojom::PageLoadTiming& timing) override; |
166 void OnMainFrameMetadataChanged() override; | 167 void OnMainFrameMetadataChanged() override; |
167 void OnSubframeMetadataChanged() override; | 168 void OnSubframeMetadataChanged() override; |
168 | 169 |
169 void Redirect(content::NavigationHandle* navigation_handle); | 170 void Redirect(content::NavigationHandle* navigation_handle); |
170 void WillProcessNavigationResponse( | 171 void WillProcessNavigationResponse( |
171 content::NavigationHandle* navigation_handle); | 172 content::NavigationHandle* navigation_handle); |
172 void Commit(content::NavigationHandle* navigation_handle); | 173 void Commit(content::NavigationHandle* navigation_handle); |
173 void DidCommitSameDocumentNavigation( | 174 void DidCommitSameDocumentNavigation( |
174 content::NavigationHandle* navigation_handle); | 175 content::NavigationHandle* navigation_handle); |
175 void DidFinishSubFrameNavigation( | 176 void DidFinishSubFrameNavigation( |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; | 369 std::vector<std::unique_ptr<PageLoadMetricsObserver>> observers_; |
369 | 370 |
370 PageLoadMetricsUpdateDispatcher metrics_update_dispatcher_; | 371 PageLoadMetricsUpdateDispatcher metrics_update_dispatcher_; |
371 | 372 |
372 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); | 373 DISALLOW_COPY_AND_ASSIGN(PageLoadTracker); |
373 }; | 374 }; |
374 | 375 |
375 } // namespace page_load_metrics | 376 } // namespace page_load_metrics |
376 | 377 |
377 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ | 378 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_TRACKER_H_ |
OLD | NEW |