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

Unified Diff: Source/core/frame/SubresourceIntegrity.h

Issue 566083003: Implementation of subresource integrity attribute for secure origins. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Block resources at insecure origins Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/frame/SubresourceIntegrity.h
diff --git a/Source/bindings/modules/v8/ModuleBindingsInitializer.h b/Source/core/frame/SubresourceIntegrity.h
similarity index 50%
copy from Source/bindings/modules/v8/ModuleBindingsInitializer.h
copy to Source/core/frame/SubresourceIntegrity.h
index 892bb0ba9eded41f17a2d45d60cd9ca8330227c4..ed57376e86328383ca156fc287c15ad9d4fd8bc3 100644
--- a/Source/bindings/modules/v8/ModuleBindingsInitializer.h
+++ b/Source/core/frame/SubresourceIntegrity.h
@@ -2,14 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ModuleBindingsInitializer_h
-#define ModuleBindingsInitializer_h
+#ifndef SubresourceIntegrity_h
+#define SubresourceIntegrity_h
+
+namespace WTF {
+class String;
+};
namespace blink {
-class ModuleBindingsInitializer {
+class SubresourceIntegrity {
public:
- static void init();
+ static bool CheckSubresourceIntegrity(const WTF::String& source, const WTF::String& integrity);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698