OLD | NEW |
(Empty) | |
| 1 // Copyright 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 WebRTCCertificate_h |
| 6 #define WebRTCCertificate_h |
| 7 |
| 8 #include "public/platform/WebRTCKeyParams.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // WebRTCCertificate is an interface defining what Blink needs to know about cer
tificates, |
| 13 // hiding Chromium and WebRTC layer implementation details. It is possible to cr
eate |
| 14 // shallow copies of the WebRTCCertificate. When all copies are destroyed, the |
| 15 // implementation specific data must be freed. WebRTCCertificate objects thus ac
t as |
| 16 // references to the reference counted internal data. |
| 17 class WebRTCCertificate { |
| 18 public: |
| 19 WebRTCCertificate() = default; |
| 20 virtual ~WebRTCCertificate() = default; |
| 21 |
| 22 // Copies the WebRTCCertificate object without copying the underlying implem
entation |
| 23 // specific (WebRTC layer) certificate. When all copies are destroyed the un
derlying |
| 24 // data is freed. |
| 25 virtual WebRTCCertificate* shallowCopy() const = 0; |
| 26 |
| 27 virtual const WebRTCKeyParams& keyParams() const = 0; |
| 28 |
| 29 // The date and time after which the certificate should be considered invali
d. |
| 30 // Expressed in time since 1970-01-01T00:00:00Z in milliseconds. |
| 31 virtual double expires() const = 0; |
| 32 |
| 33 private: |
| 34 WebRTCCertificate(const WebRTCCertificate&) = delete; |
| 35 WebRTCCertificate& operator=(const WebRTCCertificate&) = delete; |
| 36 }; |
| 37 |
| 38 } // namespace blink |
| 39 |
| 40 #endif // WebRTCCertificate_h |
OLD | NEW |