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

Unified Diff: mojo/system/dispatcher.cc

Issue 304233005: Mojo: Implement passing of shared buffers across processes on POSIX. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 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 | « no previous file | mojo/system/raw_shared_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/dispatcher.cc
diff --git a/mojo/system/dispatcher.cc b/mojo/system/dispatcher.cc
index ccdf91dc9c903d7548b379c0820741aca28d8ae6..98cb8fb8b24677d507a624e6487f6502e518f844 100644
--- a/mojo/system/dispatcher.cc
+++ b/mojo/system/dispatcher.cc
@@ -8,6 +8,7 @@
#include "mojo/system/constants.h"
#include "mojo/system/message_pipe_dispatcher.h"
#include "mojo/system/platform_handle_dispatcher.h"
+#include "mojo/system/shared_buffer_dispatcher.h"
namespace mojo {
namespace system {
@@ -78,11 +79,14 @@ scoped_refptr<Dispatcher> Dispatcher::TransportDataAccess::Deserialize(
MessagePipeDispatcher::Deserialize(channel, source, size));
case kTypeDataPipeProducer:
case kTypeDataPipeConsumer:
- case kTypeSharedBuffer:
// TODO(vtl): Implement.
LOG(WARNING) << "Deserialization of dispatcher type " << type
<< " not supported";
return scoped_refptr<Dispatcher>();
+ case kTypeSharedBuffer:
+ return scoped_refptr<Dispatcher>(
+ SharedBufferDispatcher::Deserialize(channel, source, size,
+ platform_handles));
case kTypePlatformHandle:
return scoped_refptr<Dispatcher>(
PlatformHandleDispatcher::Deserialize(channel, source, size,
« no previous file with comments | « no previous file | mojo/system/raw_shared_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698