| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 IntegrityMetadata_h | 5 #ifndef IntegrityMetadata_h |
| 6 #define IntegrityMetadata_h | 6 #define IntegrityMetadata_h |
| 7 | 7 |
| 8 #include "platform/Crypto.h" | 8 #include "platform/Crypto.h" |
| 9 #include "platform/PlatformExport.h" | 9 #include "platform/PlatformExport.h" |
| 10 #include "platform/wtf/HashSet.h" | 10 #include "platform/wtf/HashSet.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 IntegrityMetadataPair ToPair() const; | 33 IntegrityMetadataPair ToPair() const; |
| 34 | 34 |
| 35 static bool SetsEqual(const IntegrityMetadataSet& set1, | 35 static bool SetsEqual(const IntegrityMetadataSet& set1, |
| 36 const IntegrityMetadataSet& set2); | 36 const IntegrityMetadataSet& set2); |
| 37 | 37 |
| 38 private: | 38 private: |
| 39 WTF::String digest_; | 39 WTF::String digest_; |
| 40 HashAlgorithm algorithm_; | 40 HashAlgorithm algorithm_; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 enum class ResourceIntegrityDisposition { kNotChecked = 0, kFailed, kPassed }; | 43 enum class ResourceIntegrityDisposition : uint8_t { |
| 44 kNotChecked = 0, |
| 45 kFailed, |
| 46 kPassed |
| 47 }; |
| 44 | 48 |
| 45 } // namespace blink | 49 } // namespace blink |
| 46 | 50 |
| 47 #endif | 51 #endif |
| OLD | NEW |