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

Unified Diff: content/worker/worker_webkitplatformsupport_impl.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/worker/worker_webkitplatformsupport_impl.cc
diff --git a/content/worker/worker_webkitplatformsupport_impl.cc b/content/worker/worker_webkitplatformsupport_impl.cc
index cb4d8550b0d440aa006ea5dbb4333f4906ef0935..4e78345d347367ee15393ac34c98afb4c4790eb6 100644
--- a/content/worker/worker_webkitplatformsupport_impl.cc
+++ b/content/worker/worker_webkitplatformsupport_impl.cc
@@ -18,6 +18,7 @@
#include "content/child/thread_safe_sender.h"
#include "content/child/web_database_observer_impl.h"
#include "content/child/webblobregistry_impl.h"
+#include "content/child/webcrypto/webcrypto_impl.h"
#include "content/child/webfileutilities_impl.h"
#include "content/child/webmessageportchannel_impl.h"
#include "content/common/file_utilities_messages.h"
@@ -297,6 +298,12 @@ WebBlobRegistry* WorkerWebKitPlatformSupportImpl::blobRegistry() {
return blob_registry_.get();
}
+blink::WebCrypto* WorkerWebKitPlatformSupportImpl::crypto() {
+ if (!web_crypto_)
+ web_crypto_.reset(new WebCryptoImpl());
+ return web_crypto_.get();
+}
+
void WorkerWebKitPlatformSupportImpl::queryStorageUsageAndQuota(
const blink::WebURL& storage_partition,
blink::WebStorageQuotaType type,
« content/child/webcrypto/crypto_data.h ('K') | « content/worker/worker_webkitplatformsupport_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698