diff options
author | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 21:53:18 +0000 |
---|---|---|
committer | lzheng@chromium.org <lzheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-29 21:53:18 +0000 |
commit | 894c4e8a8146bfa89c66d4e4ab629d589fabd9ba (patch) | |
tree | c8bb18e20e6115b340cc9e62b3f9639626d58cac /chrome/common | |
parent | 878f43f91009570f2ddf3380236259635d26c82a (diff) | |
download | chromium_src-894c4e8a8146bfa89c66d4e4ab629d589fabd9ba.zip chromium_src-894c4e8a8146bfa89c66d4e4ab629d589fabd9ba.tar.gz chromium_src-894c4e8a8146bfa89c66d4e4ab629d589fabd9ba.tar.bz2 |
Add switches and apis in safebrowsing protocol_manager that will allow end-to-end test later.
BUG=6787,47318
TEST=protocol_manager_unittest.cc
Review URL: http://codereview.chromium.org/2868030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51177 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/chrome_switches.cc | 10 | ||||
-rw-r--r-- | chrome/common/chrome_switches.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc index 72e3aa8..9d16869 100644 --- a/chrome/common/chrome_switches.cc +++ b/chrome/common/chrome_switches.cc @@ -747,6 +747,16 @@ const char kRestoreLastSession[] = "restore-last-session"; // Runs the plugin processes inside the sandbox. const char kSafePlugins[] = "safe-plugins"; +// URL prefix used by safebrowsing to fetch hash, download data and +// report malware. +const char kSbInfoURLPrefix[] = "safebrowsing-info-url-prefix"; +// URL prefix used by safebrowsing to get MAC key. +const char kSbMacKeyURLPrefix[] = "safebrowsing-mackey-url-prefix"; +// If present, safebrowsing only performs update when +// SafeBrowsingProtocolManager::ForceScheduleNextUpdate() is explicitly called. +// This is used for testing only. +const char kSbDisableAutoUpdate[] = "safebrowsing-disable-auto-update"; + // 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. diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h index 239734e..b1aabb8 100644 --- a/chrome/common/chrome_switches.h +++ b/chrome/common/chrome_switches.h @@ -215,6 +215,9 @@ extern const char kRendererStartupDialog[]; extern const char kRestoreBackgroundContents[]; extern const char kRestoreLastSession[]; extern const char kSafePlugins[]; +extern const char kSbInfoURLPrefix[]; +extern const char kSbMacKeyURLPrefix[]; +extern const char kSbDisableAutoUpdate[]; extern const char kSdchFilter[]; extern const char kSearchInOmniboxHint[]; extern const char kServiceProcess[]; |