Index: chrome/browser/safe_browsing/download_protection_service.h |
diff --git a/chrome/browser/safe_browsing/download_protection_service.h b/chrome/browser/safe_browsing/download_protection_service.h |
index 60af4a27770f2968374696256362ace1893f8743..0918e96052bd59e4cbcb729d4c6f54e8f02f14c3 100644 |
--- a/chrome/browser/safe_browsing/download_protection_service.h |
+++ b/chrome/browser/safe_browsing/download_protection_service.h |
@@ -96,6 +96,11 @@ class DownloadProtectionService { |
return enabled_; |
} |
+ // Returns the timeout that is used by CheckClientDownload(). |
+ int64 download_request_timeout_ms() const { |
+ return download_request_timeout_ms_; |
+ } |
+ |
protected: |
// Enum to keep track why a particular download verdict was chosen. |
// This is used to keep some stats around. |
@@ -127,6 +132,8 @@ class DownloadProtectionService { |
CheckClientDownloadSuccess); |
FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
CheckClientDownloadFetchFailed); |
+ FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
+ TestDownloadRequestTimeout); |
static const char kDownloadRequestUrl[]; |
@@ -159,6 +166,8 @@ class DownloadProtectionService { |
// SignatureUtil object, may be overridden for testing. |
scoped_refptr<SignatureUtil> signature_util_; |
+ int64 download_request_timeout_ms_; |
+ |
DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService); |
}; |
} // namespace safe_browsing |