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

Unified Diff: content/child/webcrypto/crypto_data.cc

Issue 1077273002: html_viewer: Move webcrypto to a place where html_viewer can use it. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 5 years, 8 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
« no previous file with comments | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/generate_key_result.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/webcrypto/crypto_data.cc
diff --git a/content/child/webcrypto/crypto_data.cc b/content/child/webcrypto/crypto_data.cc
deleted file mode 100644
index c80503c8bcfcb37097c4df9e0b48dc1e791c7d4e..0000000000000000000000000000000000000000
--- a/content/child/webcrypto/crypto_data.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2014 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.
-
-#include "content/child/webcrypto/crypto_data.h"
-#include "base/stl_util.h"
-
-namespace content {
-
-namespace webcrypto {
-
-CryptoData::CryptoData() : bytes_(NULL), byte_length_(0) {
-}
-
-CryptoData::CryptoData(const unsigned char* bytes, unsigned int byte_length)
- : bytes_(bytes), byte_length_(byte_length) {
-}
-
-CryptoData::CryptoData(const std::vector<unsigned char>& bytes)
- : bytes_(vector_as_array(&bytes)), byte_length_(bytes.size()) {
-}
-
-CryptoData::CryptoData(const std::string& bytes)
- : bytes_(bytes.size() ? reinterpret_cast<const unsigned char*>(bytes.data())
- : NULL),
- byte_length_(bytes.size()) {
-}
-
-CryptoData::CryptoData(const blink::WebVector<unsigned char>& bytes)
- : bytes_(bytes.data()), byte_length_(bytes.size()) {
-}
-
-} // namespace webcrypto
-
-} // namespace content
« no previous file with comments | « content/child/webcrypto/crypto_data.h ('k') | content/child/webcrypto/generate_key_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698