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

Unified Diff: device/serial/serial_connection.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_source_unittest.cc ('k') | device/serial/serial_connection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection.h
diff --git a/device/serial/serial_connection.h b/device/serial/serial_connection.h
index 7a88d6b7423448f31eb1e5c793af2a409582ce5f..32c2ca2b1cbe9b15d194a9f074fb33920341f1ee 100644
--- a/device/serial/serial_connection.h
+++ b/device/serial/serial_connection.h
@@ -7,9 +7,10 @@
#include <stdint.h>
+#include <memory>
+
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "device/serial/serial.mojom.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
@@ -43,9 +44,9 @@ class SerialConnection : public serial::Connection {
void Flush(const mojo::Callback<void(bool)>& callback) override;
private:
- void OnSendPipeReady(scoped_ptr<ReadOnlyBuffer> buffer);
+ void OnSendPipeReady(std::unique_ptr<ReadOnlyBuffer> buffer);
void OnSendCancelled(int32_t error);
- void OnReceivePipeReady(scoped_ptr<WritableBuffer> buffer);
+ void OnReceivePipeReady(std::unique_ptr<WritableBuffer> buffer);
scoped_refptr<SerialIoHandler> io_handler_;
scoped_refptr<DataSinkReceiver> receiver_;
« no previous file with comments | « device/serial/data_source_unittest.cc ('k') | device/serial/serial_connection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698