| 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" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 ABORT_RELOAD, | 25 ABORT_RELOAD, |
| 26 | 26 |
| 27 // The user presses the back/forward button. | 27 // The user presses the back/forward button. |
| 28 ABORT_FORWARD_BACK, | 28 ABORT_FORWARD_BACK, |
| 29 | 29 |
| 30 // The navigation is replaced with a navigation with the qualifier | 30 // The navigation is replaced with a navigation with the qualifier |
| 31 // ui::PAGE_TRANSITION_CLIENT_REDIRECT, which is caused by Javascript, or the | 31 // ui::PAGE_TRANSITION_CLIENT_REDIRECT, which is caused by Javascript, or the |
| 32 // meta refresh tag. | 32 // meta refresh tag. |
| 33 ABORT_CLIENT_REDIRECT, | 33 ABORT_CLIENT_REDIRECT, |
| 34 | 34 |
| 35 // If the navigation is replaced by a new navigation. This includes link | 35 // If the page load is replaced by a new navigation. This includes link |
| 36 // clicks, typing in the omnibox (not a reload), and form submissions. | 36 // clicks, typing in the omnibox (not a reload), and form submissions. |
| 37 ABORT_NEW_NAVIGATION, | 37 ABORT_NEW_NAVIGATION, |
| 38 | 38 |
| 39 // If the user presses the stop X button. | 39 // If the user presses the stop X button. |
| 40 ABORT_STOP, | 40 ABORT_STOP, |
| 41 | 41 |
| 42 // If the navigation is aborted by closing the tab or browser. | 42 // If the page load is aborted by closing the tab or browser. |
| 43 ABORT_CLOSE, | 43 ABORT_CLOSE, |
| 44 | 44 |
| 45 // We don't know why the navigation aborted. This is the value we assign to an | 45 // The page load was backgrounded, e.g. the browser was minimized or the user |
| 46 // switched tabs. Note that the same page may be foregrounded in the future, |
| 47 // so this is not a 'terminal' abort type. |
| 48 ABORT_BACKGROUND, |
| 49 |
| 50 // We don't know why the page load aborted. This is the value we assign to an |
| 46 // aborted load if the only signal we get is a provisional load finishing | 51 // aborted load if the only signal we get is a provisional load finishing |
| 47 // without committing, either without error or with net::ERR_ABORTED. | 52 // without committing, either without error or with net::ERR_ABORTED. |
| 48 ABORT_OTHER, | 53 ABORT_OTHER, |
| 49 | 54 |
| 50 // Add values before this final count. | 55 // Add values before this final count. |
| 51 ABORT_LAST_ENTRY | 56 ABORT_LAST_ENTRY |
| 52 }; | 57 }; |
| 53 | 58 |
| 54 // Information related to failed provisional loads. | 59 // Information related to failed provisional loads. |
| 55 struct FailedProvisionalLoadInfo { | 60 struct FailedProvisionalLoadInfo { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 // OnFailedProvisionalLoad is invoked for tracked page loads that did not | 261 // OnFailedProvisionalLoad is invoked for tracked page loads that did not |
| 257 // commit, immediately before the observer is deleted. | 262 // commit, immediately before the observer is deleted. |
| 258 virtual void OnFailedProvisionalLoad( | 263 virtual void OnFailedProvisionalLoad( |
| 259 const FailedProvisionalLoadInfo& failed_provisional_load_info, | 264 const FailedProvisionalLoadInfo& failed_provisional_load_info, |
| 260 const PageLoadExtraInfo& extra_info) {} | 265 const PageLoadExtraInfo& extra_info) {} |
| 261 }; | 266 }; |
| 262 | 267 |
| 263 } // namespace page_load_metrics | 268 } // namespace page_load_metrics |
| 264 | 269 |
| 265 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ | 270 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
| OLD | NEW |