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_; |