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 <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 // commit, immediately before the observer is deleted. | 444 // commit, immediately before the observer is deleted. |
445 virtual void OnFailedProvisionalLoad( | 445 virtual void OnFailedProvisionalLoad( |
446 const FailedProvisionalLoadInfo& failed_provisional_load_info, | 446 const FailedProvisionalLoadInfo& failed_provisional_load_info, |
447 const PageLoadExtraInfo& extra_info) {} | 447 const PageLoadExtraInfo& extra_info) {} |
448 | 448 |
449 // Called whenever a request is loaded for this page load. This comes | 449 // Called whenever a request is loaded for this page load. This comes |
450 // unfiltered from the ResourceDispatcherHost and may include blob requests | 450 // unfiltered from the ResourceDispatcherHost and may include blob requests |
451 // and data uris. | 451 // and data uris. |
452 virtual void OnLoadedResource( | 452 virtual void OnLoadedResource( |
453 const ExtraRequestCompleteInfo& extra_request_complete_info) {} | 453 const ExtraRequestCompleteInfo& extra_request_complete_info) {} |
| 454 |
| 455 // Called when the event corresponding to |event_key| occurs in this page |
| 456 // load. |
| 457 virtual void OnEventOccurred(const void* const event_key) {} |
454 }; | 458 }; |
455 | 459 |
456 } // namespace page_load_metrics | 460 } // namespace page_load_metrics |
457 | 461 |
458 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ | 462 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_PAGE_LOAD_METRICS_OBSERVER_H_ |
OLD | NEW |