Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(191)

Side by Side Diff: content/renderer/media/rtc_certificate_generator.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/renderer/media/midi_message_filter.cc ('k') | content/renderer/media/video_track_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698