OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_METRICS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/optional.h" | 9 #include "base/optional.h" |
10 #include "chrome/common/page_load_metrics/page_load_timing.h" | 10 #include "chrome/common/page_load_metrics/page_load_timing.h" |
11 #include "content/public/browser/navigation_handle.h" | 11 #include "content/public/browser/navigation_handle.h" |
12 #include "third_party/WebKit/public/web/WebInputEvent.h" | 12 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
14 | 14 |
15 namespace page_load_metrics { | 15 namespace page_load_metrics { |
16 | 16 |
17 // This enum represents how a page load ends. If the action occurs before the | 17 // This enum represents how a page load ends. If the action occurs before the |
18 // page load finishes (or reaches some point like first paint), then we consider | 18 // page load finishes (or reaches some point like first paint), then we consider |
19 // the load to be aborted. | 19 // the load to be aborted. |
20 enum UserAbortType { | 20 enum UserAbortType { |
21 // Represents no abort. | 21 // Represents no abort. |
22 ABORT_NONE, | 22 ABORT_NONE, |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 // OnFailedProvisionalLoad is invoked for tracked page loads that did not | 270 // OnFailedProvisionalLoad is invoked for tracked page loads that did not |
271 // commit, immediately before the observer is deleted. | 271 // commit, immediately before the observer is deleted. |
272 virtual void OnFailedProvisionalLoad( | 272 virtual void OnFailedProvisionalLoad( |
273 const FailedProvisionalLoadInfo& failed_provisional_load_info, | 273 const FailedProvisionalLoadInfo& failed_provisional_load_info, |
274 const PageLoadExtraInfo& extra_info) {} | 274 const PageLoadExtraInfo& extra_info) {} |
275 }; | 275 }; |
276 | 276 |
277 } // namespace page_load_metrics | 277 } // namespace page_load_metrics |
278 | 278 |
279 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ | 279 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
OLD | NEW |