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

Side by Side Diff: third_party/WebKit/Source/core/fetch/IntegrityMetadata.h

Issue 2398733003: Cache SubResourceIntegrity checks at Resource (Closed)
Patch Set: add include Created 4 years, 2 months 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
OLDNEW
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 "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 #include "platform/Crypto.h" 9 #include "platform/Crypto.h"
10 #include "wtf/HashSet.h" 10 #include "wtf/HashSet.h"
(...skipping 22 matching lines...) Expand all
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 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 };
44
43 } // namespace blink 45 } // namespace blink
44 46
45 #endif 47 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/PendingScript.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698