Chromium Code Reviews| Index: chrome/browser/page_load_metrics/page_load_metrics_observer.h |
| diff --git a/chrome/browser/page_load_metrics/page_load_metrics_observer.h b/chrome/browser/page_load_metrics/page_load_metrics_observer.h |
| index 11a98896bd91bf72d28f0f68b05251f2ef5229f3..9940b5eae5c3270913a831a12ad671abc403b3aa 100644 |
| --- a/chrome/browser/page_load_metrics/page_load_metrics_observer.h |
| +++ b/chrome/browser/page_load_metrics/page_load_metrics_observer.h |
| @@ -10,6 +10,7 @@ |
| #include "base/macros.h" |
| #include "base/optional.h" |
| #include "chrome/common/page_load_metrics/page_load_timing.h" |
| +#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_data.h" |
| #include "content/public/browser/navigation_handle.h" |
| #include "content/public/browser/web_contents_observer.h" |
| #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| @@ -199,10 +200,9 @@ struct PageLoadExtraInfo { |
| struct ExtraRequestInfo { |
| ExtraRequestInfo(bool was_cached, |
| int64_t raw_body_bytes, |
| - bool data_reduction_proxy_used, |
| - int64_t original_network_content_length); |
| - |
| - ExtraRequestInfo(const ExtraRequestInfo& other); |
|
RyanSturm
2017/04/20 20:30:32
csharrison@, I removed this, but I can add it back
Charlie Harrison
2017/04/20 20:52:50
Fine by me. I think we only use it for for loops :
|
| + int64_t original_network_content_length, |
| + std::unique_ptr<data_reduction_proxy::DataReductionProxyData> |
|
Charlie Harrison
2017/04/20 20:52:50
#include <memory>
RyanSturm
2017/04/20 21:33:00
Done.
|
| + data_reduction_proxy_data); |
| ~ExtraRequestInfo(); |
| @@ -212,12 +212,13 @@ struct ExtraRequestInfo { |
| // The number of body (not header) prefilter bytes. |
| const int64_t raw_body_bytes; |
| - // Whether this request used Data Reduction Proxy. |
| - const bool data_reduction_proxy_used; |
| - |
| // The number of body (not header) bytes that the data reduction proxy saw |
| // before it compressed the requests. |
| const int64_t original_network_content_length; |
| + |
| + // Data related to data saver. |
| + const std::unique_ptr<data_reduction_proxy::DataReductionProxyData> |
| + data_reduction_proxy_data; |
| }; |
| // Interface for PageLoadMetrics observers. All instances of this class are |