Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(283)

Side by Side Diff: chrome/browser/safe_browsing/download_protection_service.h

Issue 8724014: Only enable improved SafeBrowsing download protection on Windows. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fix typo Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Helper class which handles communication with the SafeBrowsing servers for 5 // Helper class which handles communication with the SafeBrowsing servers for
6 // improved binary download protection. 6 // improved binary download protection.
7 7
8 #ifndef CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_ 8 #ifndef CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_
9 #define CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_ 9 #define CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_
10 #pragma once 10 #pragma once
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 REASON_SERVER_PING_FAILED, 118 REASON_SERVER_PING_FAILED,
119 REASON_INVALID_RESPONSE_PROTO, 119 REASON_INVALID_RESPONSE_PROTO,
120 REASON_NOT_BINARY_FILE, 120 REASON_NOT_BINARY_FILE,
121 REASON_REQUEST_CANCELED, 121 REASON_REQUEST_CANCELED,
122 REASON_DOWNLOAD_DANGEROUS, 122 REASON_DOWNLOAD_DANGEROUS,
123 REASON_DOWNLOAD_SAFE, 123 REASON_DOWNLOAD_SAFE,
124 REASON_EMPTY_URL_CHAIN, 124 REASON_EMPTY_URL_CHAIN,
125 REASON_HTTPS_URL, 125 REASON_HTTPS_URL,
126 REASON_PING_DISABLED, 126 REASON_PING_DISABLED,
127 REASON_TRUSTED_EXECUTABLE, 127 REASON_TRUSTED_EXECUTABLE,
128 REASON_OS_NOT_SUPPORTED,
128 REASON_MAX // Always add new values before this one. 129 REASON_MAX // Always add new values before this one.
129 }; 130 };
130 131
131 private: 132 private:
132 class CheckClientDownloadRequest; // Per-request state 133 class CheckClientDownloadRequest; // Per-request state
133 friend class DownloadProtectionServiceTest; 134 friend class DownloadProtectionServiceTest;
134 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, 135 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest,
135 CheckClientDownloadValidateRequest); 136 CheckClientDownloadValidateRequest);
136 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, 137 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest,
137 CheckClientDownloadSuccess); 138 CheckClientDownloadSuccess);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // SignatureUtil object, may be overridden for testing. 172 // SignatureUtil object, may be overridden for testing.
172 scoped_refptr<SignatureUtil> signature_util_; 173 scoped_refptr<SignatureUtil> signature_util_;
173 174
174 int64 download_request_timeout_ms_; 175 int64 download_request_timeout_ms_;
175 176
176 DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService); 177 DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService);
177 }; 178 };
178 } // namespace safe_browsing 179 } // namespace safe_browsing
179 180
180 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_ 181 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/safe_browsing/download_protection_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698