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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); | 73 void WillStartNavigationRequest(content::NavigationHandle* navigation_handle); |
74 void WillProcessNavigationResponse( | 74 void WillProcessNavigationResponse( |
75 content::NavigationHandle* navigation_handle); | 75 content::NavigationHandle* navigation_handle); |
76 | 76 |
77 // A resource request completed on the IO thread. This method is invoked on | 77 // A resource request completed on the IO thread. This method is invoked on |
78 // the UI thread. | 78 // the UI thread. |
79 void OnRequestComplete(const content::GlobalRequestID& request_id, | 79 void OnRequestComplete(const content::GlobalRequestID& request_id, |
80 content::ResourceType resource_type, | 80 content::ResourceType resource_type, |
81 bool was_cached, | 81 bool was_cached, |
82 bool used_data_reduction_proxy, | 82 bool used_data_reduction_proxy, |
| 83 bool was_lofi_response, |
83 int64_t raw_body_bytes, | 84 int64_t raw_body_bytes, |
84 int64_t original_content_length, | 85 int64_t original_content_length, |
85 base::TimeTicks creation_time); | 86 base::TimeTicks creation_time); |
86 | 87 |
87 // Invoked on navigations where a navigation delay was added by the | 88 // Invoked on navigations where a navigation delay was added by the |
88 // DelayNavigationThrottle. This is a temporary method that will be removed | 89 // DelayNavigationThrottle. This is a temporary method that will be removed |
89 // once the experiment is complete. | 90 // once the experiment is complete. |
90 void OnNavigationDelayComplete(content::NavigationHandle* navigation_handle, | 91 void OnNavigationDelayComplete(content::NavigationHandle* navigation_handle, |
91 base::TimeDelta scheduled_delay, | 92 base::TimeDelta scheduled_delay, |
92 base::TimeDelta actual_delay); | 93 base::TimeDelta actual_delay); |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 | 173 |
173 // Has the MWCO observed at least one navigation? | 174 // Has the MWCO observed at least one navigation? |
174 bool has_navigated_; | 175 bool has_navigated_; |
175 | 176 |
176 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); | 177 DISALLOW_COPY_AND_ASSIGN(MetricsWebContentsObserver); |
177 }; | 178 }; |
178 | 179 |
179 } // namespace page_load_metrics | 180 } // namespace page_load_metrics |
180 | 181 |
181 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ | 182 #endif // CHROME_BROWSER_PAGE_LOAD_METRICS_METRICS_WEB_CONTENTS_OBSERVER_H_ |
OLD | NEW |