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

Side by Side Diff: webrtc/p2p/quic/quictransport.h

Issue 1937693002: Replace scoped_ptr with unique_ptr everywhere (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@unique5
Patch Set: Created 4 years, 7 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
« no previous file with comments | « webrtc/p2p/base/transport_unittest.cc ('k') | webrtc/p2p/quic/quictransport_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2016 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2016 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ 11 #ifndef WEBRTC_P2P_QUIC_QUICTRANSPORT_H_
12 #define WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ 12 #define WEBRTC_P2P_QUIC_QUICTRANSPORT_H_
13 13
14 #include <string> 14 #include <string>
15 #include <map> 15 #include <map>
16 #include <memory>
16 17
17 #include "webrtc/p2p/base/transport.h" 18 #include "webrtc/p2p/base/transport.h"
18 #include "webrtc/p2p/quic/quictransportchannel.h" 19 #include "webrtc/p2p/quic/quictransportchannel.h"
19 20
20 namespace cricket { 21 namespace cricket {
21 22
22 class P2PTransportChannel; 23 class P2PTransportChannel;
23 class PortAllocator; 24 class PortAllocator;
24 25
25 // TODO(mikescarlett): Refactor to avoid code duplication with DtlsTransport. 26 // TODO(mikescarlett): Refactor to avoid code duplication with DtlsTransport.
(...skipping 22 matching lines...) Expand all
48 bool ApplyLocalTransportDescription(TransportChannelImpl* channel, 49 bool ApplyLocalTransportDescription(TransportChannelImpl* channel,
49 std::string* error_desc) override; 50 std::string* error_desc) override;
50 bool NegotiateTransportDescription(ContentAction action, 51 bool NegotiateTransportDescription(ContentAction action,
51 std::string* error_desc) override; 52 std::string* error_desc) override;
52 bool ApplyNegotiatedTransportDescription(TransportChannelImpl* channel, 53 bool ApplyNegotiatedTransportDescription(TransportChannelImpl* channel,
53 std::string* error_desc) override; 54 std::string* error_desc) override;
54 55
55 private: 56 private:
56 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_; 57 rtc::scoped_refptr<rtc::RTCCertificate> local_certificate_;
57 rtc::SSLRole local_role_ = rtc::SSL_CLIENT; 58 rtc::SSLRole local_role_ = rtc::SSL_CLIENT;
58 rtc::scoped_ptr<rtc::SSLFingerprint> remote_fingerprint_; 59 std::unique_ptr<rtc::SSLFingerprint> remote_fingerprint_;
59 }; 60 };
60 61
61 } // namespace cricket 62 } // namespace cricket
62 63
63 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORT_H_ 64 #endif // WEBRTC_P2P_QUIC_QUICTRANSPORT_H_
OLDNEW
« no previous file with comments | « webrtc/p2p/base/transport_unittest.cc ('k') | webrtc/p2p/quic/quictransport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698