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

Unified Diff: extensions/browser/api/messaging/native_messaging_channel.h

Issue 1902873002: Convert //extensions/browser/api from scoped_ptr 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
Index: extensions/browser/api/messaging/native_messaging_channel.h
diff --git a/extensions/browser/api/messaging/native_messaging_channel.h b/extensions/browser/api/messaging/native_messaging_channel.h
index b368706dad9eb31e56c36e291748e684d4050de2..bd03486a4a3b5bd005af7f79d64fb99df7562082 100644
--- a/extensions/browser/api/messaging/native_messaging_channel.h
+++ b/extensions/browser/api/messaging/native_messaging_channel.h
@@ -5,8 +5,9 @@
#ifndef EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_
#define EXTENSIONS_BROWSER_API_MESSAGING_NATIVE_MESSAGING_CHANNEL_H_
+#include <memory>
+
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class Value;
@@ -23,7 +24,7 @@ class NativeMessagingChannel {
class EventHandler {
public:
// Called when a message is received from the other endpoint.
- virtual void OnMessage(scoped_ptr<base::Value> message) = 0;
+ virtual void OnMessage(std::unique_ptr<base::Value> message) = 0;
// Called when the channel is disconnected.
// EventHandler is guaranteed not to be called after OnDisconnect().
@@ -38,7 +39,7 @@ class NativeMessagingChannel {
virtual void Start(EventHandler* event_handler) = 0;
// Sends a message to the other endpoint.
- virtual void SendMessage(scoped_ptr<base::Value> message) = 0;
+ virtual void SendMessage(std::unique_ptr<base::Value> message) = 0;
};
} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698