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" | |
9 #include "url/gurl.h" | 8 #include "url/gurl.h" |
10 | 9 |
11 namespace content { | 10 namespace content { |
12 | 11 |
13 RTCCertificate::RTCCertificate( | 12 RTCCertificate::RTCCertificate( |
14 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) | 13 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate) |
15 : certificate_(certificate) { | 14 : certificate_(certificate) { |
16 DCHECK(certificate_); | 15 DCHECK(certificate_); |
17 } | 16 } |
18 | 17 |
(...skipping 17 matching lines...) Expand all Loading... |
36 return *certificate_ == | 35 return *certificate_ == |
37 *static_cast<const RTCCertificate&>(other).certificate_; | 36 *static_cast<const RTCCertificate&>(other).certificate_; |
38 } | 37 } |
39 | 38 |
40 const rtc::scoped_refptr<rtc::RTCCertificate>& | 39 const rtc::scoped_refptr<rtc::RTCCertificate>& |
41 RTCCertificate::rtcCertificate() const { | 40 RTCCertificate::rtcCertificate() const { |
42 return certificate_; | 41 return certificate_; |
43 } | 42 } |
44 | 43 |
45 } // namespace content | 44 } // namespace content |
OLD | NEW |