| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/renderer/media/rtc_certificate.h" | 5 #include "content/renderer/media/rtc_certificate.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "content/renderer/media/peer_connection_identity_store.h" | 8 #include "content/renderer/media/peer_connection_identity_store.h" |
| 9 #include "url/gurl.h" | 9 #include "url/gurl.h" |
| 10 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 } | 25 } |
| 26 | 26 |
| 27 const blink::WebRTCKeyParams& RTCCertificate::keyParams() const { | 27 const blink::WebRTCKeyParams& RTCCertificate::keyParams() const { |
| 28 return key_params_; | 28 return key_params_; |
| 29 } | 29 } |
| 30 | 30 |
| 31 uint64_t RTCCertificate::expires() const { | 31 uint64_t RTCCertificate::expires() const { |
| 32 return certificate_->Expires(); | 32 return certificate_->Expires(); |
| 33 } | 33 } |
| 34 | 34 |
| 35 bool RTCCertificate::equals(const blink::WebRTCCertificate& other) const { |
| 36 return *certificate_ == |
| 37 *static_cast<const RTCCertificate&>(other).certificate_; |
| 38 } |
| 39 |
| 35 const rtc::scoped_refptr<rtc::RTCCertificate>& | 40 const rtc::scoped_refptr<rtc::RTCCertificate>& |
| 36 RTCCertificate::rtcCertificate() const { | 41 RTCCertificate::rtcCertificate() const { |
| 37 return certificate_; | 42 return certificate_; |
| 38 } | 43 } |
| 39 | 44 |
| 40 } // namespace content | 45 } // namespace content |
| OLD | NEW |