diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 01:21:33 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-24 01:21:33 +0000 |
commit | f416c205f1ab288766a5619a8cd8d8bf973039ef (patch) | |
tree | 32b6ee73d2997028743d9197a3695bb389848af4 /chrome/browser/safe_browsing/download_protection_service.h | |
parent | 4ae6aa038cd22a0d1a3b5e3cae28bcf91c6cc7ff (diff) | |
download | chromium_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.h | 4 |
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 |