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

Unified Diff: net/base/sdch_manager.h

Issue 123383002: Enable SDCH support over HTTPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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: net/base/sdch_manager.h
diff --git a/net/base/sdch_manager.h b/net/base/sdch_manager.h
index 4f45966dd5bc254f1abce816e675c00a79060233..a4cd09824a7da8cac24890b8eb3642288da1427a 100644
--- a/net/base/sdch_manager.h
+++ b/net/base/sdch_manager.h
@@ -251,6 +251,11 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
static bool sdch_enabled() { return g_sdch_enabled_; }
+ // Enables or disables SDCH compression over secure connection.
+ static void EnableSdchOverSecureSupport(bool enabled);
jar (doing other things) 2014/01/03 18:35:13 nit: This is already in the SdchManager class... s
mef 2014/01/03 20:26:55 Done.
+
+ static bool sdch_over_secure_enabled() { return g_sdch_over_secure_enabled_; }
jar (doing other things) 2014/01/03 18:35:13 nit: secure_scheme_supported make this a const me
mef 2014/01/03 20:26:55 Done.
+
// Briefly prevent further advertising of SDCH on this domain (if SDCH is
// enabled). After enough calls to IsInSupportedDomain() the blacklisting
// will be removed. Additional blacklists take exponentially more calls
@@ -344,6 +349,9 @@ class NET_EXPORT SdchManager : public NON_EXPORTED_BASE(base::NonThreadSafe) {
// Support SDCH compression, by advertising in headers.
static bool g_sdch_enabled_;
+ // Support SDCH compression over secure connection, by advertising in headers.
jar (doing other things) 2014/01/03 18:35:13 nit: Better might be g_secure_scheme_support_ bet
mef 2014/01/03 20:26:55 Done.
+ static bool g_sdch_over_secure_enabled_;
+
// A simple implementation of a RFC 3548 "URL safe" base64 encoder.
static void UrlSafeBase64Encode(const std::string& input,
std::string* output);

Powered by Google App Engine
This is Rietveld 408576698