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_generator.h" | 5 #include "content/renderer/media/rtc_certificate_generator.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
| 14 #include "base/threading/thread_task_runner_handle.h" |
14 #include "content/renderer/media/rtc_certificate.h" | 15 #include "content/renderer/media/rtc_certificate.h" |
15 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" | 16 #include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
16 #include "content/renderer/render_thread_impl.h" | 17 #include "content/renderer/render_thread_impl.h" |
17 #include "media/media_features.h" | 18 #include "media/media_features.h" |
18 #include "third_party/webrtc/base/rtccertificate.h" | 19 #include "third_party/webrtc/base/rtccertificate.h" |
19 #include "third_party/webrtc/base/rtccertificategenerator.h" | 20 #include "third_party/webrtc/base/rtccertificategenerator.h" |
20 #include "third_party/webrtc/base/scoped_ref_ptr.h" | 21 #include "third_party/webrtc/base/scoped_ref_ptr.h" |
21 #include "url/gurl.h" | 22 #include "url/gurl.h" |
22 | 23 |
23 namespace content { | 24 namespace content { |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 rtc::scoped_refptr<rtc::RTCCertificate> certificate = | 167 rtc::scoped_refptr<rtc::RTCCertificate> certificate = |
167 rtc::RTCCertificate::FromPEM( | 168 rtc::RTCCertificate::FromPEM( |
168 rtc::RTCCertificatePEM(pem_private_key.utf8(), | 169 rtc::RTCCertificatePEM(pem_private_key.utf8(), |
169 pem_certificate.utf8())); | 170 pem_certificate.utf8())); |
170 if (!certificate) | 171 if (!certificate) |
171 return nullptr; | 172 return nullptr; |
172 return base::MakeUnique<RTCCertificate>(certificate); | 173 return base::MakeUnique<RTCCertificate>(certificate); |
173 } | 174 } |
174 | 175 |
175 } // namespace content | 176 } // namespace content |
OLD | NEW |