OLD | NEW |
(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 |
OLD | NEW |