Remove unused Device Motion IPC messages.
[chromium-blink-merge.git] / content / renderer / webcrypto_impl.h
blobcb4a7663fefced62a65c79806c2b72ee46734787
1 // Copyright (c) 2013 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.
5 #ifndef CONTENT_RENDERER_WEBCRYPTO_IMPL_H_
6 #define CONTENT_RENDERER_WEBCRYPTO_IMPL_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "base/gtest_prod_util.h"
11 #include "content/common/content_export.h"
12 #include "third_party/WebKit/public/platform/WebCrypto.h"
14 namespace content {
16 class CONTENT_EXPORT WebCryptoImpl
17 : NON_EXPORTED_BASE(public WebKit::WebCrypto) {
18 public:
19 WebCryptoImpl();
21 virtual void digest(
22 const WebKit::WebCryptoAlgorithm& algorithm,
23 const unsigned char* data,
24 unsigned data_size,
25 WebKit::WebCryptoResult result);
27 protected:
28 FRIEND_TEST_ALL_PREFIXES(WebCryptoImplTest, DigestSampleSets);
30 void Init();
32 bool DigestInternal(
33 const WebKit::WebCryptoAlgorithm& algorithm,
34 const unsigned char* data,
35 unsigned data_size,
36 WebKit::WebArrayBuffer* buffer);
38 private:
39 DISALLOW_COPY_AND_ASSIGN(WebCryptoImpl);
42 } // namespace content
44 #endif // CONTENT_RENDERER_WEBCRYPTO_IMPL_H_