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

Unified Diff: third_party/mojo/src/mojo/edk/system/dispatcher.cc

Issue 975973002: Update mojo sdk to rev f68e697e389943cd9bf9652397312280e96b127a (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shake fist at msvc Created 5 years, 10 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
Index: third_party/mojo/src/mojo/edk/system/dispatcher.cc
diff --git a/third_party/mojo/src/mojo/edk/system/dispatcher.cc b/third_party/mojo/src/mojo/edk/system/dispatcher.cc
index e2f2b8784f4684c9d1c074e1a7aae65e8c6ccd66..e8695e8eff1a71f567253986a74fb707cb714768 100644
--- a/third_party/mojo/src/mojo/edk/system/dispatcher.cc
+++ b/third_party/mojo/src/mojo/edk/system/dispatcher.cc
@@ -6,6 +6,8 @@
#include "base/logging.h"
#include "mojo/edk/system/configuration.h"
+#include "mojo/edk/system/data_pipe_consumer_dispatcher.h"
+#include "mojo/edk/system/data_pipe_producer_dispatcher.h"
#include "mojo/edk/system/message_pipe_dispatcher.h"
#include "mojo/edk/system/platform_handle_dispatcher.h"
#include "mojo/edk/system/shared_buffer_dispatcher.h"
@@ -77,11 +79,11 @@ scoped_refptr<Dispatcher> Dispatcher::TransportDataAccess::Deserialize(
return scoped_refptr<Dispatcher>(
MessagePipeDispatcher::Deserialize(channel, source, size));
case kTypeDataPipeProducer:
+ return scoped_refptr<Dispatcher>(
+ DataPipeProducerDispatcher::Deserialize(channel, source, size));
case kTypeDataPipeConsumer:
- // TODO(vtl): Implement.
- LOG(WARNING) << "Deserialization of dispatcher type " << type
- << " not supported";
- return nullptr;
+ return scoped_refptr<Dispatcher>(
+ DataPipeConsumerDispatcher::Deserialize(channel, source, size));
case kTypeSharedBuffer:
return scoped_refptr<Dispatcher>(SharedBufferDispatcher::Deserialize(
channel, source, size, platform_handles));
« no previous file with comments | « third_party/mojo/src/mojo/edk/system/data_pipe_unittest.cc ('k') | third_party/mojo/src/mojo/edk/system/incoming_endpoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698