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

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

Issue 792283002: Safebrowsing download protection: handle data URIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« 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) 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
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
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_
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