| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |