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

Unified Diff: webrtc/p2p/quic/quicsession.h

Issue 1923163003: Replace scoped_ptr with unique_ptr in webrtc/p2p/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/p2p/quic/quicconnectionhelper_unittest.cc ('k') | webrtc/p2p/quic/quicsession.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/quic/quicsession.h
diff --git a/webrtc/p2p/quic/quicsession.h b/webrtc/p2p/quic/quicsession.h
index e0ea296b59cbcef17adb62f4e7fd6678be908d8f..a6da38a13d6581c668a24aa5624c1ff1a5415e01 100644
--- a/webrtc/p2p/quic/quicsession.h
+++ b/webrtc/p2p/quic/quicsession.h
@@ -11,6 +11,7 @@
#ifndef WEBRTC_P2P_QUIC_QUICSESSION_H_
#define WEBRTC_P2P_QUIC_QUICSESSION_H_
+#include <memory>
#include <string>
#include "net/quic/quic_crypto_client_stream.h"
@@ -29,7 +30,7 @@ namespace cricket {
// reading/writing of data using QUIC packets.
class QuicSession : public net::QuicSession, public sigslot::has_slots<> {
public:
- QuicSession(rtc::scoped_ptr<net::QuicConnection> connection,
+ QuicSession(std::unique_ptr<net::QuicConnection> connection,
const net::QuicConfig& config);
~QuicSession() override;
@@ -82,7 +83,7 @@ class QuicSession : public net::QuicSession, public sigslot::has_slots<> {
virtual ReliableQuicStream* CreateDataStream(net::QuicStreamId id);
private:
- rtc::scoped_ptr<net::QuicCryptoStream> crypto_stream_;
+ std::unique_ptr<net::QuicCryptoStream> crypto_stream_;
RTC_DISALLOW_COPY_AND_ASSIGN(QuicSession);
};
« no previous file with comments | « webrtc/p2p/quic/quicconnectionhelper_unittest.cc ('k') | webrtc/p2p/quic/quicsession.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698