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

Unified Diff: remoting/base/buffered_socket_writer.h

Issue 2386733002: Remove stl_util's deletion functions from remoting/. (Closed)
Patch Set: fix Created 4 years, 3 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 | « no previous file | remoting/base/buffered_socket_writer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/buffered_socket_writer.h
diff --git a/remoting/base/buffered_socket_writer.h b/remoting/base/buffered_socket_writer.h
index 343b14337b6e4b8bf2e0a81cd73875c4db7adbcf..6c0e99c161808df4f749ba78d31bc7475de3c3e2 100644
--- a/remoting/base/buffered_socket_writer.h
+++ b/remoting/base/buffered_socket_writer.h
@@ -6,6 +6,7 @@
#define REMOTING_BASE_BUFFERED_SOCKET_WRITER_H_
#include <list>
+#include <memory>
#include "base/callback.h"
#include "base/memory/weak_ptr.h"
@@ -52,7 +53,6 @@ class BufferedSocketWriter {
private:
struct PendingPacket;
- typedef std::list<PendingPacket*> DataQueue;
void DoWrite();
void HandleWriteResult(int result);
@@ -65,7 +65,7 @@ class BufferedSocketWriter {
bool closed_ = false;
- DataQueue queue_;
+ std::list<std::unique_ptr<PendingPacket>> queue_;
bool write_pending_ = false;
« no previous file with comments | « no previous file | remoting/base/buffered_socket_writer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698