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

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

Issue 1865913005: Nuke WebPassOwnPtr<T> and replace it with std::unique_ptr<T>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h" 9 #include "third_party/WebKit/public/platform/WebRTCCertificate.h"
10 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h" 10 #include "third_party/WebKit/public/platform/WebRTCCertificateGenerator.h"
11 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h" 11 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // Chromium's WebRTCCertificateGenerator implementation; uses the 15 // Chromium's WebRTCCertificateGenerator implementation; uses the
16 // PeerConnectionIdentityStore/SSLIdentity::Generate to generate the identity, 16 // PeerConnectionIdentityStore/SSLIdentity::Generate to generate the identity,
17 // rtc::RTCCertificate and content::RTCCertificate. 17 // rtc::RTCCertificate and content::RTCCertificate.
18 class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator { 18 class RTCCertificateGenerator : public blink::WebRTCCertificateGenerator {
19 public: 19 public:
20 RTCCertificateGenerator() {} 20 RTCCertificateGenerator() {}
21 ~RTCCertificateGenerator() override {} 21 ~RTCCertificateGenerator() override {}
22 22
23 // blink::WebRTCCertificateGenerator implementation. 23 // blink::WebRTCCertificateGenerator implementation.
24 void generateCertificate( 24 void generateCertificate(
25 const blink::WebRTCKeyParams& key_params, 25 const blink::WebRTCKeyParams& key_params,
26 const blink::WebURL& url, 26 const blink::WebURL& url,
27 const blink::WebURL& first_party_for_cookies, 27 const blink::WebURL& first_party_for_cookies,
28 blink::WebPassOwnPtr<blink::WebRTCCertificateCallback> observer) override; 28 std::unique_ptr<blink::WebRTCCertificateCallback> observer) override;
29 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override; 29 bool isSupportedKeyParams(const blink::WebRTCKeyParams& key_params) override;
30 30
31 private: 31 private:
32 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator); 32 DISALLOW_COPY_AND_ASSIGN(RTCCertificateGenerator);
33 }; 33 };
34 34
35 } // namespace content 35 } // namespace content
36 36
37 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_ 37 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_GENERATOR_H_
OLDNEW
« no previous file with comments | « content/renderer/media/rtc_certificate.cc ('k') | content/renderer/media/rtc_certificate_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698