Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(270)

Unified Diff: components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h

Issue 2615493002: Adding compressed bytes to DRP pingback (Closed)
Patch Set: moving to KB Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h
diff --git a/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h b/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h
index e9b023446fa8584c98d02c69e661e28f54ab985b..a1224225e41f95094f329ba20e6b545f887429b1 100644
--- a/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h
+++ b/components/data_reduction_proxy/core/common/data_reduction_proxy_page_load_timing.h
@@ -5,6 +5,8 @@
#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LOAD_TIMING_H
#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_REDUCTION_PROXY_PAGE_LOAD_TIMING_H
+#include <stdint.h>
+
#include "base/optional.h"
#include "base/time/time.h"
@@ -22,7 +24,9 @@ struct DataReductionProxyPageLoadTiming {
experimental_first_meaningful_paint,
const base::Optional<base::TimeDelta>&
parse_blocked_on_script_load_duration,
- const base::Optional<base::TimeDelta>& parse_stop);
+ const base::Optional<base::TimeDelta>& parse_stop,
+ int64_t network_bytes,
+ int64_t original_network_bytes);
DataReductionProxyPageLoadTiming(
const DataReductionProxyPageLoadTiming& other);
@@ -48,6 +52,11 @@ struct DataReductionProxyPageLoadTiming {
const base::Optional<base::TimeDelta> parse_blocked_on_script_load_duration;
// Time when parsing completed.
const base::Optional<base::TimeDelta> parse_stop;
+ // The number of bytes served over the network, not including headers.
+ const int64_t network_bytes;
+ // The number of bytes that would have been served over the network if the
+ // user were not using data reduction proxy, not including headers.
+ const int64_t original_network_bytes;
};
} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698