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

Unified Diff: ppapi/proxy/message_handler.h

Issue 1864293002: Convert //ppapi to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more nullptr 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 | « ppapi/proxy/media_stream_video_track_resource.cc ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/message_handler.h
diff --git a/ppapi/proxy/message_handler.h b/ppapi/proxy/message_handler.h
index 6a83f21c9fcf325816d1b1f874a2595b89a4a2ba..363312e44d1968f7f03e4378fad290f0dde12c1f 100644
--- a/ppapi/proxy/message_handler.h
+++ b/ppapi/proxy/message_handler.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 "ppapi/c/pp_resource.h"
#include "ppapi/c/ppp_message_handler.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
@@ -44,7 +45,7 @@ class PPAPI_PROXY_EXPORT MessageHandler {
// thread. If it's the main thread loop, |error| will be set
// to PP_ERROR_WRONGTHREAD.
// |error| is an out-param that will be set on failure.
- static scoped_ptr<MessageHandler> Create(
+ static std::unique_ptr<MessageHandler> Create(
PP_Instance instance,
const PPP_MessageHandler_0_2* handler_if,
void* user_data,
@@ -56,7 +57,7 @@ class PPAPI_PROXY_EXPORT MessageHandler {
void HandleMessage(ScopedPPVar var);
void HandleBlockingMessage(ScopedPPVar var,
- scoped_ptr<IPC::Message> reply_msg);
+ std::unique_ptr<IPC::Message> reply_msg);
private:
MessageHandler(PP_Instance instance,
« no previous file with comments | « ppapi/proxy/media_stream_video_track_resource.cc ('k') | ppapi/proxy/message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698