OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/public/common/quarantine.h" | 5 #include "content/public/common/quarantine.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include <cguid.h> | 9 #include <cguid.h> |
10 #include <objbase.h> | 10 #include <objbase.h> |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 return FailedSaveResultToQuarantineResult(save_result); | 341 return FailedSaveResultToQuarantineResult(save_result); |
342 return QuarantineFileResult::OK; | 342 return QuarantineFileResult::OK; |
343 } | 343 } |
344 | 344 |
345 bool IsFileQuarantined(const base::FilePath& file, | 345 bool IsFileQuarantined(const base::FilePath& file, |
346 const GURL& source_url, | 346 const GURL& source_url, |
347 const GURL& referrer_url) { | 347 const GURL& referrer_url) { |
348 return ZoneIdentifierPresentForFile(file); | 348 return ZoneIdentifierPresentForFile(file); |
349 } | 349 } |
350 | 350 |
| 351 // Only to be used in tests. |
| 352 bool IsQuarantineSupportedForTesting() { |
| 353 return true; |
| 354 } |
| 355 |
351 } // namespace content | 356 } // namespace content |
OLD | NEW |