| 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_METRICS_WEB_CONTENTS_OBSERVER_H_ | 5 #ifndef CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 6 #define CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 // A resource request started on the IO thread. This method is invoked on | 100 // A resource request started on the IO thread. This method is invoked on |
| 101 // the UI thread. | 101 // the UI thread. |
| 102 void OnRequestStarted(const content::GlobalRequestID& request_id, | 102 void OnRequestStarted(const content::GlobalRequestID& request_id, |
| 103 content::ResourceType resource_type, | 103 content::ResourceType resource_type, |
| 104 base::TimeTicks creation_time); | 104 base::TimeTicks creation_time); |
| 105 | 105 |
| 106 // A resource request completed on the IO thread. This method is invoked on | 106 // A resource request completed on the IO thread. This method is invoked on |
| 107 // the UI thread. | 107 // the UI thread. |
| 108 void OnRequestComplete( | 108 void OnRequestComplete( |
| 109 const GURL& url, |
| 110 int frame_tree_node_id, |
| 109 const content::GlobalRequestID& request_id, | 111 const content::GlobalRequestID& request_id, |
| 110 content::ResourceType resource_type, | 112 content::ResourceType resource_type, |
| 111 bool was_cached, | 113 bool was_cached, |
| 112 std::unique_ptr<data_reduction_proxy::DataReductionProxyData> | 114 std::unique_ptr<data_reduction_proxy::DataReductionProxyData> |
| 113 data_reduction_proxy_data, | 115 data_reduction_proxy_data, |
| 114 int64_t raw_body_bytes, | 116 int64_t raw_body_bytes, |
| 115 int64_t original_content_length, | 117 int64_t original_content_length, |
| 116 base::TimeTicks creation_time); | 118 base::TimeTicks creation_time); |
| 117 | 119 |
| 118 // Invoked on navigations where a navigation delay was added by the | 120 // Invoked on navigations where a navigation delay was added by the |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 bool has_navigated_; | 212 bool has_navigated_; |
| 211 | 213 |
| 212 base::ObserverList<TestingObserver> testing_observers_; | 214 base::ObserverList<TestingObserver> testing_observers_; |
| 213 | 215 |
| 214 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); | 216 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); |
| 215 }; | 217 }; |
| 216 | 218 |
| 217 } // namespace page_load_metrics | 219 } // namespace page_load_metrics |
| 218 | 220 |
| 219 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 221 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
| OLD | NEW |