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

Unified Diff: remoting/host/native_messaging/pipe_messaging_channel.h

Issue 1864213002: Convert //remoting to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Mac 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
Index: remoting/host/native_messaging/pipe_messaging_channel.h
diff --git a/remoting/host/native_messaging/pipe_messaging_channel.h b/remoting/host/native_messaging/pipe_messaging_channel.h
index 75c4f94097c73bd15398fe67b1b7c6898bb379d2..93e04c1edbe344e563e5d4e5114c297978bc5358 100644
--- a/remoting/host/native_messaging/pipe_messaging_channel.h
+++ b/remoting/host/native_messaging/pipe_messaging_channel.h
@@ -5,11 +5,12 @@
#ifndef REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_
#define REMOTING_HOST_NATIVE_MESSAGING_PIPE_MESSAGING_CHANNEL_H_
+#include <memory>
+
#include "base/callback.h"
#include "base/files/file.h"
#include "base/macros.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "extensions/browser/api/messaging/native_messaging_channel.h"
@@ -40,17 +41,17 @@ class PipeMessagingChannel : public extensions::NativeMessagingChannel,
// extensions::NativeMessagingChannel implementation.
void Start(EventHandler* event_handler) override;
- void SendMessage(scoped_ptr<base::Value> message) override;
+ void SendMessage(std::unique_ptr<base::Value> message) override;
private:
// Processes a message received from the client app.
- void ProcessMessage(scoped_ptr<base::Value> message);
+ void ProcessMessage(std::unique_ptr<base::Value> message);
// Initiates shutdown.
void Shutdown();
NativeMessagingReader native_messaging_reader_;
- scoped_ptr<NativeMessagingWriter> native_messaging_writer_;
+ std::unique_ptr<NativeMessagingWriter> native_messaging_writer_;
EventHandler* event_handler_;
base::WeakPtr<PipeMessagingChannel> weak_ptr_;

Powered by Google App Engine
This is Rietveld 408576698