Index: third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp |
diff --git a/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp b/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..e6e748c394ab78c7ab501f3b2c363a8c86caeed9 |
--- /dev/null |
+++ b/third_party/WebKit/Source/core/inspector/addStringToDigestor.cpp |
@@ -0,0 +1,16 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
alph
2017/04/10 08:09:55
missing a line of copyright
Daniel Bratell
2017/04/10 08:28:29
Done.
|
+ |
+#include "core/inspector/addStringToDigestor.h" |
+ |
+#include "platform/wtf/text/WTFString.h" |
+#include "public/platform/WebCrypto.h" |
+ |
+namespace blink { |
+ |
+void addStringToDigestor(WebCryptoDigestor* digestor, const String& string) { |
+ digestor->consume( |
+ reinterpret_cast<const unsigned char*>(string.ascii().data()), |
+ string.length()); |
+} |
+} |