| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WebRTCCertificate_h | 5 #ifndef WebRTCCertificate_h |
| 6 #define WebRTCCertificate_h | 6 #define WebRTCCertificate_h |
| 7 | 7 |
| 8 #include "public/platform/WebRTCKeyParams.h" | 8 #include "public/platform/WebRTCKeyParams.h" |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 // Copies the WebRTCCertificate object without copying the underlying implem
entation | 24 // Copies the WebRTCCertificate object without copying the underlying implem
entation |
| 25 // specific (WebRTC layer) certificate. When all copies are destroyed the un
derlying | 25 // specific (WebRTC layer) certificate. When all copies are destroyed the un
derlying |
| 26 // data is freed. | 26 // data is freed. |
| 27 virtual std::unique_ptr<WebRTCCertificate> shallowCopy() const = 0; | 27 virtual std::unique_ptr<WebRTCCertificate> shallowCopy() const = 0; |
| 28 | 28 |
| 29 virtual const WebRTCKeyParams& keyParams() const = 0; | 29 virtual const WebRTCKeyParams& keyParams() const = 0; |
| 30 | 30 |
| 31 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z
. | 31 // Returns the expiration time in ms relative to epoch, 1970-01-01T00:00:00Z
. |
| 32 virtual uint64_t expires() const = 0; | 32 virtual uint64_t expires() const = 0; |
| 33 | 33 |
| 34 // Checks if the two certificate objects represent the same certificate valu
e, |
| 35 // as should be the case for a clone and the original. |
| 36 virtual bool equals(const WebRTCCertificate& other) const = 0; |
| 37 |
| 34 private: | 38 private: |
| 35 WebRTCCertificate(const WebRTCCertificate&) = delete; | 39 WebRTCCertificate(const WebRTCCertificate&) = delete; |
| 36 WebRTCCertificate& operator=(const WebRTCCertificate&) = delete; | 40 WebRTCCertificate& operator=(const WebRTCCertificate&) = delete; |
| 37 }; | 41 }; |
| 38 | 42 |
| 39 } // namespace blink | 43 } // namespace blink |
| 40 | 44 |
| 41 #endif // WebRTCCertificate_h | 45 #endif // WebRTCCertificate_h |
| OLD | NEW |