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

Unified Diff: mojo/edk/system/dispatcher.h

Issue 1350183002: EDK: More scoped_ptr -> std::unique_ptr conversions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: gah Created 5 years, 3 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 | « mojo/edk/system/data_pipe_impl.h ('k') | mojo/edk/system/dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/dispatcher.h
diff --git a/mojo/edk/system/dispatcher.h b/mojo/edk/system/dispatcher.h
index 98b39f43a3f0b2f65daf27a55b2d300b2cc8e2e4..200b0eca5b1ba0e97238da05fa39ec84afeb3f0d 100644
--- a/mojo/edk/system/dispatcher.h
+++ b/mojo/edk/system/dispatcher.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <memory>
#include <ostream>
#include <vector>
@@ -121,7 +122,7 @@ class MOJO_SYSTEM_IMPL_EXPORT Dispatcher
uint64_t offset,
uint64_t num_bytes,
MojoMapBufferFlags flags,
- scoped_ptr<embedder::PlatformSharedBufferMapping>* mapping);
+ std::unique_ptr<embedder::PlatformSharedBufferMapping>* mapping);
// Gets the current handle signals state. (The default implementation simply
// returns a default-constructed |HandleSignalsState|, i.e., no signals
@@ -272,7 +273,7 @@ class MOJO_SYSTEM_IMPL_EXPORT Dispatcher
uint64_t offset,
uint64_t num_bytes,
MojoMapBufferFlags flags,
- scoped_ptr<embedder::PlatformSharedBufferMapping>* mapping)
+ std::unique_ptr<embedder::PlatformSharedBufferMapping>* mapping)
MOJO_EXCLUSIVE_LOCKS_REQUIRED(mutex_);
virtual HandleSignalsState GetHandleSignalsStateImplNoLock() const
MOJO_SHARED_LOCKS_REQUIRED(mutex_);
« no previous file with comments | « mojo/edk/system/data_pipe_impl.h ('k') | mojo/edk/system/dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698