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

Unified Diff: ppapi/proxy/nacl_message_scanner.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/message_handler.cc ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/proxy/nacl_message_scanner.h
diff --git a/ppapi/proxy/nacl_message_scanner.h b/ppapi/proxy/nacl_message_scanner.h
index 8c5f7662ae7e6cfff2b8b5ada969a774ba2bbb51..9f9d73a7b93ec910d11afdac4e791853d4411054 100644
--- a/ppapi/proxy/nacl_message_scanner.h
+++ b/ppapi/proxy/nacl_message_scanner.h
@@ -8,10 +8,10 @@
#include <stdint.h>
#include <map>
+#include <memory>
#include <vector>
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/synchronization/lock.h"
#include "ppapi/c/pp_resource.h"
#include "ppapi/proxy/ppapi_proxy_export.h"
@@ -47,12 +47,12 @@ class PPAPI_PROXY_EXPORT NaClMessageScanner {
bool ScanMessage(const IPC::Message& msg,
uint32_t type,
std::vector<SerializedHandle>* handles,
- scoped_ptr<IPC::Message>* new_msg_ptr);
+ std::unique_ptr<IPC::Message>* new_msg_ptr);
// Scans an untrusted message for items that require special handling. If the
// message had to be rewritten, sets |new_msg_ptr| to the new message.
void ScanUntrustedMessage(const IPC::Message& untrusted_msg,
- scoped_ptr<IPC::Message>* new_msg_ptr);
+ std::unique_ptr<IPC::Message>* new_msg_ptr);
// FileSystem information for quota auditing.
class PPAPI_PROXY_EXPORT FileSystem {
« no previous file with comments | « ppapi/proxy/message_handler.cc ('k') | ppapi/proxy/nacl_message_scanner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698