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 "base/macros.h" | |
| 9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h" | |
| 10 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h" | |
| 11 #include "third_party/webrtc/base/rtccertificate.h" | |
| 12 #include "third_party/webrtc/base/scoped_ref_ptr.h" | |
| 13 | |
| 14 namespace content { | |
| 15 | |
| 16 // Chromium's WebRTCCertificate implementation; wraps a rtc::scoped_refptr to an | |
| 17 // rtc::RTCCertificate. This abstraction layer is necessary because blink does | |
| 18 // not have direct access to the WebRTC stuff. | |
|
Ryan Sleevi
2015/10/10 04:04:48
comment nit: "stuff" seems a bit... colloquial
hbos_chromium
2015/10/14 13:00:49
Done.
| |
| 19 class RTCCertificate : public blink::WebRTCCertificate { | |
| 20 public: | |
| 21 RTCCertificate(const blink::WebRTCKeyParams& key_params, | |
| 22 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); | |
| 23 ~RTCCertificate() override; | |
| 24 | |
| 25 RTCCertificate* shallowCopy() const override; | |
| 26 const blink::WebRTCKeyParams& keyParams() const override; | |
| 27 double expires() const override; | |
| 28 | |
| 29 const rtc::scoped_refptr<rtc::RTCCertificate>* | |
|
Ryan Sleevi
2015/10/10 04:04:48
Why are you returning a pointer to a scoped pointe
hbos_chromium
2015/10/14 13:00:49
The interface being implemented, blink::WebRTCCert
| |
| 30 rtcCertificate() const override; | |
| 31 | |
| 32 private: | |
| 33 blink::WebRTCKeyParams key_params_; | |
| 34 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(RTCCertificate); | |
| 37 }; | |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_ | |
| OLD | NEW |