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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h

Issue 1074293003: Use int64 instead of int32 for response sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reuploading to try to fix corrupt issue Created 5 years, 8 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/browser/data_reduction_proxy_tamper_detection.h
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h
index 411a123d9663a46bd1c2e6385d80db8b4359d6c9..4f524128fc57222c80654530017b39d759eb8091 100644
--- a/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_tamper_detection.h
@@ -71,7 +71,7 @@ class DataReductionProxyTamperDetection {
// response had been tampered with.
static bool DetectAndReport(const net::HttpResponseHeaders* headers,
bool scheme_is_https,
- int content_length);
+ int64 content_length);
// Tamper detection checks |response_headers|. Histogram events are reported
// by |carrier_id|; |scheme_is_https| determines which histogram to report
@@ -131,16 +131,16 @@ class DataReductionProxyTamperDetection {
// |original_content_length| for future use, |original_content_length| cannot
// be NULL.
bool ValidateContentLength(const std::string& fingerprint,
- int received_content_length,
- int* original_content_length) const;
+ int64 received_content_length,
+ int64* original_content_length) const;
// Reports UMA for tampering of the contents and the compression ratio. The
// compression ratio is calculated from |content_length|, which is the
// content length received by the Chromium client, and
// |original_content_length|, which is the content length sent by the Data
// Reduction Proxy.
- void ReportUMAForContentLength(int content_length,
- int original_content_length) const;
+ void ReportUMAForContentLength(int64 content_length,
+ int64 original_content_length) const;
// Returns a string representation of |values|.
static std::string ValuesToSortedString(std::vector<std::string>* values);

Powered by Google App Engine
This is Rietveld 408576698