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

Unified Diff: content/child/webcrypto/webcrypto_util.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: Created 6 years, 10 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/child/webcrypto/webcrypto_util.cc
diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
similarity index 97%
rename from content/renderer/webcrypto/webcrypto_util.cc
rename to content/child/webcrypto/webcrypto_util.cc
index a72805640570009d8dcfc5f2b10a0bbf5b8128fa..16967f2f2616f3ea55e34047d482bcccf2ce7548 100644
--- a/content/renderer/webcrypto/webcrypto_util.cc
+++ b/content/child/webcrypto/webcrypto_util.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/renderer/webcrypto/webcrypto_util.h"
+#include "content/child/webcrypto/webcrypto_util.h"
#include "base/base64.h"
#include "base/logging.h"
@@ -253,11 +253,9 @@ blink::WebCryptoAlgorithm CreateRsaOaepImportAlgorithm(
DCHECK(IsHashAlgorithm(hash_id));
return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
blink::WebCryptoAlgorithmIdRsaOaep,
- new blink::WebCryptoRsaHashedImportParams(
- CreateAlgorithm(hash_id)));
+ new blink::WebCryptoRsaHashedImportParams(CreateAlgorithm(hash_id)));
}
-
unsigned int ShaBlockSizeBytes(blink::WebCryptoAlgorithmId hash_id) {
switch (hash_id) {
case blink::WebCryptoAlgorithmIdSha1:
@@ -282,8 +280,7 @@ bool CreateSecretKeyAlgorithm(const blink::WebCryptoAlgorithm& algorithm,
if (hash.isNull())
return false;
*key_algorithm = blink::WebCryptoKeyAlgorithm::adoptParamsAndCreate(
- algorithm.id(),
- new blink::WebCryptoHmacKeyAlgorithmParams(hash));
+ algorithm.id(), new blink::WebCryptoHmacKeyAlgorithmParams(hash));
return true;
}
case blink::WebCryptoAlgorithmIdAesKw:

Powered by Google App Engine
This is Rietveld 408576698