From 108f62e0b5a9b722c89346a192198b1da8e782dd Mon Sep 17 00:00:00 2001
From: "jar@google.com" <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Mon, 22 Sep 2008 17:24:28 +0000
Subject: Experimental integration of delta compression content encoding

The command line option "sdch-enable" enables support of sdch
and automtic lazy download of dictionaries.  Optionally it
can select a singular domain to work from.

By default, all domains are enabled when the flag is used.
"-sdch-enable=".google.com"  Enables it only for Google.

When the switch is not set on the command line, all this
code is completely disabled.

Still TBD:
a) Finish implementation of security details (much of it is in place)
b) Add tests for security details.


r=huanr,ajenjo,kmixter

Review URL: http://codereview.chromium.org/461

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2443 0039d316-1c4b-4281-b951-d872f2087c98
---
 chrome/common/chrome_switches.cc | 7 +++++++
 chrome/common/chrome_switches.h  | 2 ++
 2 files changed, 9 insertions(+)

(limited to 'chrome/common')

diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 56a3936..7dec663 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -317,5 +317,12 @@ const wchar_t kJavaScriptDebuggerPath[] = L"javascript-debugger-path";
 
 const wchar_t kEnableP13n[] = L"enable-p13n";
 
+// Enable support for SDCH filtering (dictionary based expansion of content).
+// Optional argument is *the* only domain name that will have SDCH suppport.
+// Default is  "-enable-sdch" to advertise SDCH on all domains.
+// Sample usage with argument: "-enable-sdch=.google.com"
+// SDCH is currently only supported server-side for searches on google.com.
+const wchar_t kSdchFilter[] = L"enable-sdch";
+
 }  // namespace switches
 
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 4ec96f4..241170e8 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -123,6 +123,8 @@ extern const wchar_t kJavaScriptDebuggerPath[];
 
 extern const wchar_t kEnableP13n[];
 
+extern const wchar_t kSdchFilter[];
+
 }  // namespace switches
 
 #endif  // CHROME_COMMON_CHROME_SWITCHES_H__
-- 
cgit v1.1