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 COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
6 #define COMPONENTS_PAGE_LOAD_METRICS_BROWSER_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 "components/page_load_metrics/common/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/web/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 { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 // commit, immediately before the observer is deleted. Note that provisional | 202 // commit, immediately before the observer is deleted. Note that provisional |
203 // loads that result in downloads or 204s are aborted by the system, and are | 203 // loads that result in downloads or 204s are aborted by the system, and are |
204 // also included as failed provisional loads. | 204 // also included as failed provisional loads. |
205 virtual void OnFailedProvisionalLoad( | 205 virtual void OnFailedProvisionalLoad( |
206 const FailedProvisionalLoadInfo& failed_provisional_load_info, | 206 const FailedProvisionalLoadInfo& failed_provisional_load_info, |
207 const PageLoadExtraInfo& extra_info) {} | 207 const PageLoadExtraInfo& extra_info) {} |
208 }; | 208 }; |
209 | 209 |
210 } // namespace page_load_metrics | 210 } // namespace page_load_metrics |
211 | 211 |
212 #endif // COMPONENTS_PAGE_LOAD_METRICS_BROWSER_PAGE_LOAD_METRICS_OBSERVER_H_ | 212 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
OLD | NEW |