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

Side by Side Diff: content/child/webcrypto/crypto_data.cc

Issue 188203003: Move webcrypto to child/ and add support to worker_webkitplatformsupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes to gypis Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/jwk.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/webcrypto/crypto_data.h" 5 #include "content/child/webcrypto/crypto_data.h"
6 6
7 #include "third_party/WebKit/public/platform/WebArrayBuffer.h" 7 #include "third_party/WebKit/public/platform/WebArrayBuffer.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 namespace webcrypto { 11 namespace webcrypto {
12 12
13 CryptoData::CryptoData() : bytes_(NULL), byte_length_(0) {} 13 CryptoData::CryptoData() : bytes_(NULL), byte_length_(0) {}
14 14
15 CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length) 15 CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length)
(...skipping 10 matching lines...) Expand all
26 CryptoData::CryptoData(const blink::WebArrayBuffer& buffer) 26 CryptoData::CryptoData(const blink::WebArrayBuffer& buffer)
27 : bytes_(reinterpret_cast<const unsigned char*>(buffer.data())), 27 : bytes_(reinterpret_cast<const unsigned char*>(buffer.data())),
28 byte_length_(buffer.byteLength()) {} 28 byte_length_(buffer.byteLength()) {}
29 29
30 CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes) 30 CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes)
31 : bytes_(bytes.data()), byte_length_(bytes.size()) {} 31 : bytes_(bytes.data()), byte_length_(bytes.size()) {}
32 32
33 } // namespace webcrypto 33 } // namespace webcrypto
34 34
35 } // namespace content 35 } // namespace content
OLDNEW
« no previous file with comments | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/jwk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698