OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef SubresourceIntegrity_h | |
6 #define SubresourceIntegrity_h | |
7 | |
8 #include "platform/Crypto.h" | |
9 | |
10 namespace WTF { | |
11 class String; | |
12 }; | |
13 | |
14 namespace blink { | |
15 | |
16 class Element; | |
17 class KURL; | |
18 | |
19 class SubresourceIntegrity { | |
20 public: | |
21 static bool CheckSubresourceIntegrity(const Element&, const WTF::String&, co nst KURL& resourceUrl); | |
22 | |
23 private: | |
24 static bool parseIntegrityAttribute(const WTF::String& attribute, WTF::Strin g& integrity, HashAlgorithm&); | |
Mike West
2014/09/16 06:45:04
These are both very unit-testable methods. I'd sug
jww
2014/09/16 22:34:49
Done.
| |
25 }; | |
26 | |
27 } // namespace blink | |
28 | |
29 #endif | |
OLD | NEW |