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

Unified Diff: content/renderer/media/dtls_identity_service.cc

Issue 15969025: Generates the DTLS identity in browser process and returns it to render process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 7 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/media/dtls_identity_service.cc
diff --git a/content/renderer/media/dtls_identity_service.cc b/content/renderer/media/dtls_identity_service.cc
new file mode 100644
index 0000000000000000000000000000000000000000..7d4f8bb152214070851f19e8261ba817fcedf7b8
--- /dev/null
+++ b/content/renderer/media/dtls_identity_service.cc
@@ -0,0 +1,26 @@
+// 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/media/dtls_identity_service.h"
+
+#include "content/common/media/dtls_identity_messages.h"
+#include "content/renderer/render_thread_impl.h"
+
+namespace content {
+
+DTLSIdentityService::DTLSIdentityService(const GURL& url) : url_(url) {}
+
+DTLSIdentityService::~DTLSIdentityService() {}
+
+bool DTLSIdentityService::GetOrGenerateIdentity(
+ const std::string& identity_name,
+ const std::string& common_name,
+ std::string* certificate,
+ std::string* private_key) {
+ return RenderThreadImpl::current()->Send(new DtlsIdentityMsg_GetOrGenerate(
+ url_, identity_name, common_name, certificate, private_key));
+}
+
+} // namespace content

Powered by Google App Engine
This is Rietveld 408576698