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

Unified Diff: mojo/edk/system/data_pipe_impl.h

Issue 973513004: Allow data pipe producer/consumer handles to be re-sent. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: review comments 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
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/data_pipe_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_impl.h
diff --git a/mojo/edk/system/data_pipe_impl.h b/mojo/edk/system/data_pipe_impl.h
index bcb166b2a086de4056824f16bbae309407bc4735..20ca900044e145fb2a8ec2869351d376399f07fa 100644
--- a/mojo/edk/system/data_pipe_impl.h
+++ b/mojo/edk/system/data_pipe_impl.h
@@ -90,6 +90,15 @@ class MOJO_SYSTEM_IMPL_EXPORT DataPipeImpl {
protected:
DataPipeImpl() : owner_() {}
+ // Helper to convert the given circular buffer into messages. The input is a
+ // circular buffer |buffer| (with appropriate element size and capacity), with
+ // current contents starting at |start_index| of length |current_num_bytes|.
+ // This will convert all of the contents.
+ void ConvertDataToMessages(const char* buffer,
+ size_t* start_index,
+ size_t* current_num_bytes,
+ MessageInTransitQueue* message_queue);
+
DataPipe* owner() const { return owner_; }
const MojoCreateDataPipeOptions& validated_options() const {
« no previous file with comments | « mojo/edk/system/data_pipe.cc ('k') | mojo/edk/system/data_pipe_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698