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

Side by Side Diff: content/renderer/media/rtc_certificate.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_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_ 6 #define CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "third_party/WebKit/public/platform/WebRTCCertificate.h" 11 #include "third_party/WebKit/public/platform/WebRTCCertificate.h"
12 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h" 12 #include "third_party/WebKit/public/platform/WebRTCKeyParams.h"
13 #include "third_party/webrtc/base/rtccertificate.h" 13 #include "third_party/webrtc/base/rtccertificate.h"
14 #include "third_party/webrtc/base/scoped_ref_ptr.h" 14 #include "third_party/webrtc/base/scoped_ref_ptr.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 // Chromium's WebRTCCertificate implementation; wraps a rtc::scoped_refptr to an 18 // Chromium's WebRTCCertificate implementation; wraps a rtc::scoped_refptr to an
19 // rtc::RTCCertificate. This abstraction layer is necessary because blink does 19 // rtc::RTCCertificate. This abstraction layer is necessary because blink does
20 // not have direct access to WebRTC. 20 // not have direct access to WebRTC.
21 class RTCCertificate : public blink::WebRTCCertificate { 21 class RTCCertificate : public blink::WebRTCCertificate {
22 public: 22 public:
23 RTCCertificate(const blink::WebRTCKeyParams& key_params, 23 RTCCertificate(const blink::WebRTCKeyParams& key_params,
24 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate); 24 const rtc::scoped_refptr<rtc::RTCCertificate>& certificate);
25 ~RTCCertificate() override; 25 ~RTCCertificate() override;
26 26
27 // blink::WebRTCCertificate implementation. 27 // blink::WebRTCCertificate implementation.
28 blink::WebPassOwnPtr<blink::WebRTCCertificate> shallowCopy() const override; 28 std::unique_ptr<blink::WebRTCCertificate> shallowCopy() const override;
29 const blink::WebRTCKeyParams& keyParams() const override; 29 const blink::WebRTCKeyParams& keyParams() const override;
30 uint64_t expires() const override; 30 uint64_t expires() const override;
31 31
32 const rtc::scoped_refptr<rtc::RTCCertificate>& rtcCertificate() const; 32 const rtc::scoped_refptr<rtc::RTCCertificate>& rtcCertificate() const;
33 33
34 private: 34 private:
35 blink::WebRTCKeyParams key_params_; 35 blink::WebRTCKeyParams key_params_;
36 rtc::scoped_refptr<rtc::RTCCertificate> certificate_; 36 rtc::scoped_refptr<rtc::RTCCertificate> certificate_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(RTCCertificate); 38 DISALLOW_COPY_AND_ASSIGN(RTCCertificate);
39 }; 39 };
40 40
41 } // namespace content 41 } // namespace content
42 42
43 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_ 43 #endif // CONTENT_RENDERER_MEDIA_RTC_CERTIFICATE_H_
OLDNEW
« no previous file with comments | « content/renderer/cache_storage/cache_storage_dispatcher.cc ('k') | content/renderer/media/rtc_certificate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698