| 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 b497712b14b29b6328df156e8bc0230ab60be401..83ff641fb08cf29cc15a2210d7fa359f597aca55 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
|
| @@ -50,7 +50,10 @@
|
| #include <string>
|
| #include <vector>
|
|
|
| +#include <stdint.h>
|
| +
|
| #include "base/gtest_prod_util.h"
|
| +#include "base/macros.h"
|
| #include "net/proxy/proxy_service.h"
|
|
|
| namespace net {
|
| @@ -72,7 +75,7 @@ class DataReductionProxyTamperDetection {
|
| // response had been tampered with.
|
| static bool DetectAndReport(const net::HttpResponseHeaders* headers,
|
| bool scheme_is_https,
|
| - int64 content_length);
|
| + int64_t content_length);
|
|
|
| // Tamper detection checks |response_headers|. Histogram events are reported
|
| // by |carrier_id|; |scheme_is_https| determines which histogram to report
|
| @@ -110,7 +113,7 @@ class DataReductionProxyTamperDetection {
|
|
|
| // Reports UMA for the numbers of responses with valid fingerprints, separated
|
| // by MIME type.
|
| - void ReportUMAForTamperDetectionCount(int64 original_content_length) const;
|
| + void ReportUMAForTamperDetectionCount(int64_t original_content_length) const;
|
|
|
| // Returns the result of validating Chrome-Proxy header.
|
| bool ValidateChromeProxyHeader(const std::string& fingerprint) const;
|
| @@ -140,16 +143,16 @@ class DataReductionProxyTamperDetection {
|
| // |original_content_length| for future use, |original_content_length| cannot
|
| // be NULL.
|
| bool ValidateContentLength(const std::string& fingerprint,
|
| - int64 received_content_length,
|
| - int64* original_content_length) const;
|
| + int64_t received_content_length,
|
| + int64_t* 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(int64 content_length,
|
| - int64 original_content_length) const;
|
| + void ReportUMAForContentLength(int64_t content_length,
|
| + int64_t original_content_length) const;
|
|
|
| // Returns a string representation of |values|.
|
| static std::string ValuesToSortedString(std::vector<std::string>* values);
|
|
|