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

Unified Diff: third_party/mojo/src/mojo/edk/system/local_data_pipe_impl.h

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/local_data_pipe_impl.h
diff --git a/third_party/mojo/src/mojo/edk/system/local_data_pipe_impl.h b/third_party/mojo/src/mojo/edk/system/local_data_pipe_impl.h
index 14defcbe5593c6cbf02a7e646b7397057bbc3d9a..48233f24425ae47bfe4ec0ce8140ec8a7587a068 100644
--- a/third_party/mojo/src/mojo/edk/system/local_data_pipe_impl.h
+++ b/third_party/mojo/src/mojo/edk/system/local_data_pipe_impl.h
@@ -14,7 +14,7 @@
namespace mojo {
namespace system {
-class DataPipe;
+class MessageInTransitQueue;
// |LocalDataPipeImpl| is a subclass that "implements" |DataPipe| for data pipes
// whose producer and consumer are both local. See |DataPipeImpl| for more
@@ -67,6 +67,8 @@ class MOJO_SYSTEM_IMPL_EXPORT LocalDataPipeImpl : public DataPipeImpl {
void* destination,
size_t* actual_size,
embedder::PlatformHandleVector* platform_handles) override;
+ bool OnReadMessage(unsigned port, MessageInTransit* message) override;
+ void OnDetachFromChannel(unsigned port) override;
void EnsureBuffer();
void DestroyBuffer();
@@ -77,7 +79,7 @@ class MOJO_SYSTEM_IMPL_EXPORT LocalDataPipeImpl : public DataPipeImpl {
size_t GetMaxNumBytesToRead();
// Marks the given number of bytes as consumed/discarded. |num_bytes| must be
- // greater than |current_num_bytes_|.
+ // no greater than |current_num_bytes_|.
void MarkDataAsConsumed(size_t num_bytes);
scoped_ptr<char, base::AlignedFreeDeleter> buffer_;

Powered by Google App Engine
This is Rietveld 408576698