| 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 #ifndef CONTENT_PUBLIC_COMMON_QUARANTINE_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_QUARANTINE_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_QUARANTINE_H_ | 6 #define CONTENT_PUBLIC_COMMON_QUARANTINE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 // If both |source_url| and |referrer_url|, then the funciton returns true if | 94 // If both |source_url| and |referrer_url|, then the funciton returns true if |
| 95 // any quarantine metadata is present for the file. | 95 // any quarantine metadata is present for the file. |
| 96 // | 96 // |
| 97 // **Note**: On Windows, this function only checks if the |ZoneIdentifier| | 97 // **Note**: On Windows, this function only checks if the |ZoneIdentifier| |
| 98 // metadata is present. |source_url| and |referrer_url| are ignored. Windows | 98 // metadata is present. |source_url| and |referrer_url| are ignored. Windows |
| 99 // currently doesn't store individual URLs as part of the mark-of-the-web. | 99 // currently doesn't store individual URLs as part of the mark-of-the-web. |
| 100 CONTENT_EXPORT bool IsFileQuarantined(const base::FilePath& file, | 100 CONTENT_EXPORT bool IsFileQuarantined(const base::FilePath& file, |
| 101 const GURL& source_url, | 101 const GURL& source_url, |
| 102 const GURL& referrer_url); | 102 const GURL& referrer_url); |
| 103 | 103 |
| 104 // Determine if quarantining is supported. For exapmle, quarantining would not |
| 105 // be supported on a linux system that disabled extended attributes or that uses |
| 106 // tmpfs. |
| 107 // |
| 108 // Only to be used in tests. |
| 109 CONTENT_EXPORT bool IsQuarantineSupportedForTesting(); |
| 110 |
| 104 } // namespace content | 111 } // namespace content |
| 105 | 112 |
| 106 #endif // CONTENT_PUBLIC_COMMON_QUARANTINE_H_ | 113 #endif // CONTENT_PUBLIC_COMMON_QUARANTINE_H_ |
| OLD | NEW |