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

Unified Diff: content/renderer/webcrypto_impl.cc

Issue 19757011: WebCrypto: Implement digest() using NSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Export WebCryptoImpl instead of getting an instance from WebKitPlatformSupportImpl. Created 7 years, 4 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
Index: content/renderer/webcrypto_impl.cc
diff --git a/content/renderer/webcrypto_impl.cc b/content/renderer/webcrypto_impl.cc
deleted file mode 100644
index 80c551240eeb141a4c5b305f9485e5df2c241b6e..0000000000000000000000000000000000000000
--- a/content/renderer/webcrypto_impl.cc
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013 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/renderer/webcrypto_impl.h"
-
-#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
-
-namespace content {
-
-WebKit::WebCryptoOperation* WebCryptoImpl::digest(
- const WebKit::WebCryptoAlgorithm& algorithm) {
- switch (algorithm.id()) {
- case WebKit::WebCryptoAlgorithmIdSha1:
- case WebKit::WebCryptoAlgorithmIdSha224:
- case WebKit::WebCryptoAlgorithmIdSha256:
- case WebKit::WebCryptoAlgorithmIdSha384:
- case WebKit::WebCryptoAlgorithmIdSha512:
- // TODO(eroman): Implement.
- return NULL;
- default:
- // Not a digest algorithm.
- return NULL;
- }
-}
-
-} // namespace content

Powered by Google App Engine
This is Rietveld 408576698