diff options
author | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:24:28 +0000 |
---|---|---|
committer | jar@google.com <jar@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-22 17:24:28 +0000 |
commit | 108f62e0b5a9b722c89346a192198b1da8e782dd (patch) | |
tree | 070347a1c736b6f832b7ae1d022db68e99bfe498 /chrome/common | |
parent | b1b945e8f3586a8d08acc9e7d29b4efe99606373 (diff) | |
download | chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.zip chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.tar.gz chromium_src-108f62e0b5a9b722c89346a192198b1da8e782dd.tar.bz2 |
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
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 7 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 2 |
2 files changed, 9 insertions, 0 deletions
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__ |