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

Side by Side Diff: content/renderer/media/rtc_certificate.cc

Issue 1311853005: RTCCertificate and RTCPeerConnection.generateCertificate added to JavaScript (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Chromium implementation of Blink interfaces. Addressed comments. Created 5 years, 2 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) 2015 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 #include "content/renderer/media/rtc_certificate.h"
6
7 #include "content/renderer/media/peer_connection_identity_store.h"
8 #include "url/gurl.h"
9
10 namespace content {
11
12 RTCCertificate::RTCCertificate(
13 const blink::WebRTCKeyType& key_type,
14 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate)
15 : key_type_(key_type), certificate_(certificate) {
16 DCHECK(certificate_);
17 }
18
19 RTCCertificate::~RTCCertificate() {
20 }
21
22 RTCCertificate* RTCCertificate::shallowCopy() const {
23 return new RTCCertificate(key_type_, certificate_);
24 }
25
26 const blink::WebRTCKeyType& RTCCertificate::keyType() const {
27 return key_type_;
28 }
29
30 double RTCCertificate::expires() const {
31 return static_cast<double>(certificate_->expires_timestamp_ns());
32 }
33
34 const rtc::scoped_refptr<rtc::RTCCertificate>*
35 RTCCertificate::rtcCertificate() const {
36 return &certificate_;
37 }
38
39 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_certificate.h ('k') | content/renderer/media/rtc_certificate_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698