| 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 "wtf/HashSet.h" | 10 #include "platform/wtf/HashSet.h" |
| 11 #include "wtf/StringHasher.h" | 11 #include "platform/wtf/StringHasher.h" |
| 12 #include "wtf/text/StringHash.h" | 12 #include "platform/wtf/text/StringHash.h" |
| 13 #include "wtf/text/WTFString.h" | 13 #include "platform/wtf/text/WTFString.h" |
| 14 | 14 |
| 15 namespace blink { | 15 namespace blink { |
| 16 | 16 |
| 17 class IntegrityMetadata; | 17 class IntegrityMetadata; |
| 18 | 18 |
| 19 using IntegrityMetadataPair = std::pair<WTF::String, HashAlgorithm>; | 19 using IntegrityMetadataPair = std::pair<WTF::String, HashAlgorithm>; |
| 20 using IntegrityMetadataSet = WTF::HashSet<IntegrityMetadataPair>; | 20 using IntegrityMetadataSet = WTF::HashSet<IntegrityMetadataPair>; |
| 21 | 21 |
| 22 class PLATFORM_EXPORT IntegrityMetadata { | 22 class PLATFORM_EXPORT IntegrityMetadata { |
| 23 public: | 23 public: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 38 private: | 38 private: |
| 39 WTF::String m_digest; | 39 WTF::String m_digest; |
| 40 HashAlgorithm m_algorithm; | 40 HashAlgorithm m_algorithm; |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 enum class ResourceIntegrityDisposition { NotChecked = 0, Failed, Passed }; | 43 enum class ResourceIntegrityDisposition { NotChecked = 0, Failed, Passed }; |
| 44 | 44 |
| 45 } // namespace blink | 45 } // namespace blink |
| 46 | 46 |
| 47 #endif | 47 #endif |
| OLD | NEW |