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

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

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 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
7
8 #include "third_party/WebKit/public/platform/WebRTCCertificate.h"
9 #include "third_party/WebKit/public/platform/WebRTCKeyType.h"
10 #include "third_party/webrtc/base/rtccertificate.h"
11 #include "third_party/webrtc/base/scoped_ref_ptr.h"
12
13 namespace content {
14
15 // Chromium's WebRTCCertificate implementation; wraps a rtc::scoped_refptr to a
16 // rtc::RTCCertificate. This abstraction layer is necessary because blink does
17 // not have direct access to the WebRTC stuff.
18 class RTCCertificate : public blink::WebRTCCertificate {
19 public:
20 explicit RTCCertificate(
21 const blink::WebRTCKeyType& key_type,
22 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
23 ~RTCCertificate() override;
24
25 RTCCertificate* shallowCopy() const override;
26 const blink::WebRTCKeyType& keyType() const override;
27 double expires() const override;
28
29 const rtc::scoped_refptr<rtc::RTCCertificate>*
30 rtcCertificate() const override;
31
32 private:
33 blink::WebRTCKeyType key_type_;
34 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
OLDNEW
« no previous file with comments | « content/renderer/media/peer_connection_identity_store.cc ('k') | content/renderer/media/rtc_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698