Chromium Code Reviews| OLD | NEW |
|---|---|
| (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( | |
|
jochen (gone - plz use gerrit)
2015/09/29 07:47:09
no explicit
hbos_chromium
2015/10/02 15:43:17
Done.
| |
| 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 }; | |
|
jochen (gone - plz use gerrit)
2015/09/29 07:47:09
disallow copy/assign
hbos_chromium
2015/10/02 15:43:17
Done.
| |
| 36 | |
| 37 } // namespace content | |
| 38 | |
| 39 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_ | |
| OLD | NEW |