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

Unified Diff: device/serial/data_source_sender.h

Issue 1874313002: Convert device to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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 | « device/serial/data_sink_unittest.cc ('k') | device/serial/data_source_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_source_sender.h
diff --git a/device/serial/data_source_sender.h b/device/serial/data_source_sender.h
index 33cf024f251b02cbd63e86ea762c3e22e9ebf16a..15ff233cc1e278dbf9a9a68fa60f2139f5303ba7 100644
--- a/device/serial/data_source_sender.h
+++ b/device/serial/data_source_sender.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include <memory>
#include <vector>
#include "base/callback.h"
@@ -25,7 +26,7 @@ namespace device {
class DataSourceSender : public base::RefCounted<DataSourceSender>,
public serial::DataSource {
public:
- typedef base::Callback<void(scoped_ptr<WritableBuffer>)> ReadyCallback;
+ typedef base::Callback<void(std::unique_ptr<WritableBuffer>)> ReadyCallback;
typedef base::Callback<void()> ErrorCallback;
// Constructs a DataSourceSender. Whenever the pipe is ready for writing, the
@@ -81,7 +82,7 @@ class DataSourceSender : public base::RefCounted<DataSourceSender>,
ErrorCallback error_callback_;
// The current pending send operation if there is one.
- scoped_ptr<PendingSend> pending_send_;
+ std::unique_ptr<PendingSend> pending_send_;
// The number of bytes available for buffering in the client.
uint32_t available_buffer_capacity_;
« no previous file with comments | « device/serial/data_sink_unittest.cc ('k') | device/serial/data_source_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698