summaryrefslogtreecommitdiffstats
path: root/chrome/browser/safe_browsing/download_protection_service.h
diff options
context:
space:
mode:
authornoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 01:21:33 +0000
committernoelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-24 01:21:33 +0000
commitf416c205f1ab288766a5619a8cd8d8bf973039ef (patch)
tree32b6ee73d2997028743d9197a3695bb389848af4 /chrome/browser/safe_browsing/download_protection_service.h
parent4ae6aa038cd22a0d1a3b5e3cae28bcf91c6cc7ff (diff)
downloadchromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.zip
chromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.tar.gz
chromium_src-f416c205f1ab288766a5619a8cd8d8bf973039ef.tar.bz2
Ping SafeBrowsing servers when Chrome users download an unknown crx and apk
file. For now the server will never report any of these files as being malicious. BUG= TEST= Review URL: http://codereview.chromium.org/9839030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128639 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/safe_browsing/download_protection_service.h')
-rw-r--r--chrome/browser/safe_browsing/download_protection_service.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h
index bb358e0..4a51021 100644
--- a/chrome/browser/safe_browsing/download_protection_service.h
+++ b/chrome/browser/safe_browsing/download_protection_service.h
@@ -135,6 +135,8 @@ class DownloadProtectionService {
REASON_TRUSTED_EXECUTABLE,
REASON_OS_NOT_SUPPORTED,
REASON_DOWNLOAD_UNCOMMON,
+ REASON_DOWNLOAD_NOT_SUPPORTED,
+ REASON_INVALID_RESPONSE_VERDICT,
REASON_MAX // Always add new values before this one.
};
@@ -149,6 +151,8 @@ class DownloadProtectionService {
CheckClientDownloadFetchFailed);
FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest,
TestDownloadRequestTimeout);
+ FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest,
+ CheckClientCrxDownloadSuccess);
static const char kDownloadRequestUrl[];
// Cancels all requests in |download_requests_|, and empties it, releasing