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

Unified Diff: components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detect.h

Issue 338483002: Chrome Participated Tamper Detect (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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/browser/data_reduction_proxy_tamper_detect.h
diff --git a/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detect.h b/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detect.h
new file mode 100644
index 0000000000000000000000000000000000000000..c869db6daabdca6735b2323a368fa2c2e202ac3d
--- /dev/null
+++ b/components/data_reduction_proxy/browser/data_reduction_proxy_tamper_detect.h
@@ -0,0 +1,28 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TAMPER_DETECT_H_
+#define COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TAMPER_DETECT_H_
+
+#include "net/http/http_request_headers.h"
+#include "net/http/http_response_headers.h"
+
+namespace data_reduction_proxy {
+
+// Eported for unittest
bolian 2014/06/25 18:55:56 s/Eported/Exported
xingx 2014/06/25 20:55:43 Done.
+bool CheckHeaderChromeProxy(const std::string,
bolian 2014/06/25 18:55:56 Comment public funcs. See http://google-styleguide
xingx 2014/06/25 20:55:43 Done.
+ const net::HttpResponseHeaders*);
+
+bool CheckHeaderVia(const std::string, const net::HttpResponseHeaders*);
+
+bool CheckHeaderOtherHeaders(const std::string,
+ const net::HttpResponseHeaders*);
+
+bool CheckHeaderContentLength(const std::string,
+ const net::HttpResponseHeaders*, std::string*);
+
+void CheckResponseFingerprint(const net::HttpResponseHeaders*, const bool);
+
+} // namespace data_reduction_proxy
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_BROWSER_DATA_REDUCTION_PROXY_TAMPER_DETECT_H_

Powered by Google App Engine
This is Rietveld 408576698