OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 10 |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 CheckClientDownloadWhitelistedUrl); | 168 CheckClientDownloadWhitelistedUrl); |
169 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 169 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
170 CheckClientDownloadValidateRequest); | 170 CheckClientDownloadValidateRequest); |
171 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 171 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
172 CheckClientDownloadSuccess); | 172 CheckClientDownloadSuccess); |
173 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 173 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
174 CheckClientDownloadHTTPS); | 174 CheckClientDownloadHTTPS); |
175 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 175 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
176 CheckClientDownloadBlob); | 176 CheckClientDownloadBlob); |
177 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 177 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
| 178 CheckClientDownloadData); |
| 179 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
178 CheckClientDownloadZip); | 180 CheckClientDownloadZip); |
179 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 181 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
180 CheckClientDownloadFetchFailed); | 182 CheckClientDownloadFetchFailed); |
181 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 183 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
182 TestDownloadRequestTimeout); | 184 TestDownloadRequestTimeout); |
183 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, | 185 FRIEND_TEST_ALL_PREFIXES(DownloadProtectionServiceTest, |
184 CheckClientCrxDownloadSuccess); | 186 CheckClientCrxDownloadSuccess); |
185 static const char kDownloadRequestUrl[]; | 187 static const char kDownloadRequestUrl[]; |
186 | 188 |
187 // Cancels all requests in |download_requests_|, and empties it, releasing | 189 // Cancels all requests in |download_requests_|, and empties it, releasing |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 | 229 |
228 // A list of callbacks to be run on the main thread when a | 230 // A list of callbacks to be run on the main thread when a |
229 // ClientDownloadRequest has been formed. | 231 // ClientDownloadRequest has been formed. |
230 ClientDownloadRequestCallbackList client_download_request_callbacks_; | 232 ClientDownloadRequestCallbackList client_download_request_callbacks_; |
231 | 233 |
232 DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService); | 234 DISALLOW_COPY_AND_ASSIGN(DownloadProtectionService); |
233 }; | 235 }; |
234 } // namespace safe_browsing | 236 } // namespace safe_browsing |
235 | 237 |
236 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_ | 238 #endif // CHROME_BROWSER_SAFE_BROWSING_DOWNLOAD_PROTECTION_SERVICE_H_ |
OLD | NEW |