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

Side by Side 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, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5
6 #include "content/renderer/media/dtls_identity_service.h"
7
8 #include "content/common/media/dtls_identity_messages.h"
9 #include "content/renderer/render_thread_impl.h"
10
11 namespace content {
12
13 DTLSIdentityService::DTLSIdentityService(const GURL& url) : url_(url) {}
14
15 DTLSIdentityService::~DTLSIdentityService() {}
16
17 bool DTLSIdentityService::GetOrGenerateIdentity(
18 const std::string& identity_name,
19 const std::string& common_name,
20 std::string* certificate,
21 std::string* private_key) {
22 return RenderThreadImpl::current()->Send(new DtlsIdentityMsg_GetOrGenerate(
23 url_, identity_name, common_name, certificate, private_key));
24 }
25
26 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698