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

Unified Diff: mojo/system/shared_buffer_dispatcher.h

Issue 471773002: Mojo: Add a platform interface for shared memory (embedder::PlatformSharedBuffer). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win fix Created 6 years, 4 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/system/remote_message_pipe_unittest.cc ('k') | mojo/system/shared_buffer_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/shared_buffer_dispatcher.h
diff --git a/mojo/system/shared_buffer_dispatcher.h b/mojo/system/shared_buffer_dispatcher.h
index 640781d08ec47774111df8a8491c670401faa4fb..70954651b5217bdda2760f4fd9a3bc30250dfcb3 100644
--- a/mojo/system/shared_buffer_dispatcher.h
+++ b/mojo/system/shared_buffer_dispatcher.h
@@ -6,8 +6,8 @@
#define MOJO_SYSTEM_SHARED_BUFFER_DISPATCHER_H_
#include "base/macros.h"
+#include "mojo/embedder/platform_shared_buffer.h"
#include "mojo/system/memory.h"
-#include "mojo/system/raw_shared_buffer.h"
#include "mojo/system/simple_dispatcher.h"
#include "mojo/system/system_impl_export.h"
@@ -53,7 +53,7 @@ class MOJO_SYSTEM_IMPL_EXPORT SharedBufferDispatcher : public SimpleDispatcher {
private:
explicit SharedBufferDispatcher(
- scoped_refptr<RawSharedBuffer> shared_buffer_);
+ scoped_refptr<embedder::PlatformSharedBuffer> shared_buffer_);
virtual ~SharedBufferDispatcher();
// Validates and/or sets default options for
@@ -76,7 +76,7 @@ class MOJO_SYSTEM_IMPL_EXPORT SharedBufferDispatcher : public SimpleDispatcher {
uint64_t offset,
uint64_t num_bytes,
MojoMapBufferFlags flags,
- scoped_ptr<RawSharedBufferMapping>* mapping) OVERRIDE;
+ scoped_ptr<embedder::PlatformSharedBufferMapping>* mapping) OVERRIDE;
virtual void StartSerializeImplNoLock(Channel* channel,
size_t* max_size,
size_t* max_platform_handles) OVERRIDE;
@@ -86,7 +86,7 @@ class MOJO_SYSTEM_IMPL_EXPORT SharedBufferDispatcher : public SimpleDispatcher {
size_t* actual_size,
embedder::PlatformHandleVector* platform_handles) OVERRIDE;
- scoped_refptr<RawSharedBuffer> shared_buffer_;
+ scoped_refptr<embedder::PlatformSharedBuffer> shared_buffer_;
DISALLOW_COPY_AND_ASSIGN(SharedBufferDispatcher);
};
« no previous file with comments | « mojo/system/remote_message_pipe_unittest.cc ('k') | mojo/system/shared_buffer_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698