| Index: third_party/WebKit/Source/modules/crypto/CryptoUtilities.h
|
| diff --git a/third_party/WebKit/Source/modules/crypto/CryptoUtilities.h b/third_party/WebKit/Source/modules/crypto/CryptoUtilities.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..13216dbf46a3f52dd69f5eb89661e6d881a293a5
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/crypto/CryptoUtilities.h
|
| @@ -0,0 +1,18 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CryptoUtilities_h
|
| +#define CryptoUtilities_h
|
| +
|
| +#include "core/dom/DOMArrayPiece.h"
|
| +#include "public/platform/WebVector.h"
|
| +
|
| +namespace blink {
|
| +inline WebVector<uint8_t> CopyBytes(const DOMArrayPiece& source) {
|
| + return WebVector<uint8_t>(static_cast<const uint8_t*>(source.Data()),
|
| + source.ByteLength());
|
| +}
|
| +} // namespace blink
|
| +
|
| +#endif // CryptoUtilities_h
|
|
|