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

Side by Side Diff: mojo/edk/system/data_pipe_consumer_dispatcher.h

Issue 2741353002: Mojo: Add signal for new data pipe consumer data (Closed)
Patch Set: rebase Created 3 years, 9 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/data_pipe_consumer_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
6 #define MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 uint32_t two_phase_max_bytes_read_ = 0; 110 uint32_t two_phase_max_bytes_read_ = 0;
111 111
112 bool in_transit_ = false; 112 bool in_transit_ = false;
113 bool is_closed_ = false; 113 bool is_closed_ = false;
114 bool peer_closed_ = false; 114 bool peer_closed_ = false;
115 bool transferred_ = false; 115 bool transferred_ = false;
116 116
117 uint32_t read_offset_ = 0; 117 uint32_t read_offset_ = 0;
118 uint32_t bytes_available_ = 0; 118 uint32_t bytes_available_ = 0;
119 119
120 // Indicates whether any new data is available since the last read attempt.
121 bool new_data_available_ = false;
122
120 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher); 123 DISALLOW_COPY_AND_ASSIGN(DataPipeConsumerDispatcher);
121 }; 124 };
122 125
123 } // namespace edk 126 } // namespace edk
124 } // namespace mojo 127 } // namespace mojo
125 128
126 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_ 129 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_CONSUMER_DISPATCHER_H_
OLDNEW
« no previous file with comments | « mojo/edk/system/core_unittest.cc ('k') | mojo/edk/system/data_pipe_consumer_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698