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

Unified Diff: net/tools/quic/quic_simple_client.h

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu 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 | « net/tools/quic/quic_server_session_base_test.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/quic/quic_simple_client.h
diff --git a/net/tools/quic/quic_simple_client.h b/net/tools/quic/quic_simple_client.h
index bcd0bdabe0f4f18c29ed405abb4b012d8e3756f4..151fc6e99d71d493c6627fd68367538a84d8c242 100644
--- a/net/tools/quic/quic_simple_client.h
+++ b/net/tools/quic/quic_simple_client.h
@@ -10,11 +10,11 @@
#include <stddef.h>
+#include <memory>
#include <string>
#include "base/command_line.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
#include "net/base/ip_address.h"
#include "net/base/ip_endpoint.h"
@@ -220,10 +220,10 @@ class QuicSimpleClient : public QuicClientBase,
int local_port_;
// UDP socket connected to the server.
- scoped_ptr<UDPClientSocket> socket_;
+ std::unique_ptr<UDPClientSocket> socket_;
// Listens for full responses.
- scoped_ptr<ResponseListener> response_listener_;
+ std::unique_ptr<ResponseListener> response_listener_;
// Tracks if the client is initialized to connect.
bool initialized_;
@@ -255,7 +255,7 @@ class QuicSimpleClient : public QuicClientBase,
// The log used for the sockets.
NetLog net_log_;
- scoped_ptr<QuicChromiumPacketReader> packet_reader_;
+ std::unique_ptr<QuicChromiumPacketReader> packet_reader_;
bool packet_reader_started_;
« no previous file with comments | « net/tools/quic/quic_server_session_base_test.cc ('k') | net/tools/quic/quic_simple_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698