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_PRODUCER_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
6 #define MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "mojo/edk/system/awakable_list.h" | 9 #include "mojo/edk/system/awakable_list.h" |
10 #include "mojo/edk/system/dispatcher.h" | 10 #include "mojo/edk/system/dispatcher.h" |
11 #include "mojo/edk/system/raw_channel.h" | 11 #include "mojo/edk/system/raw_channel.h" |
12 #include "mojo/edk/system/system_impl_export.h" | 12 #include "mojo/edk/system/system_impl_export.h" |
13 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 13 #include "mojo/public/cpp/system/macros.h" |
14 | 14 |
15 namespace mojo { | 15 namespace mojo { |
16 namespace edk { | 16 namespace edk { |
17 | 17 |
18 // This is the |Dispatcher| implementation for the producer handle for data | 18 // This is the |Dispatcher| implementation for the producer handle for data |
19 // pipes (created by the Mojo primitive |MojoCreateDataPipe()|). This class is | 19 // pipes (created by the Mojo primitive |MojoCreateDataPipe()|). This class is |
20 // thread-safe. | 20 // thread-safe. |
21 class MOJO_SYSTEM_IMPL_EXPORT DataPipeProducerDispatcher final | 21 class MOJO_SYSTEM_IMPL_EXPORT DataPipeProducerDispatcher final |
22 : public Dispatcher, public RawChannel::Delegate { | 22 : public Dispatcher, public RawChannel::Delegate { |
23 public: | 23 public: |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 std::vector<char> serialized_write_buffer_; | 106 std::vector<char> serialized_write_buffer_; |
107 std::vector<char> two_phase_data_; | 107 std::vector<char> two_phase_data_; |
108 | 108 |
109 MOJO_DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); | 109 MOJO_DISALLOW_COPY_AND_ASSIGN(DataPipeProducerDispatcher); |
110 }; | 110 }; |
111 | 111 |
112 } // namespace edk | 112 } // namespace edk |
113 } // namespace mojo | 113 } // namespace mojo |
114 | 114 |
115 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ | 115 #endif // MOJO_EDK_SYSTEM_DATA_PIPE_PRODUCER_DISPATCHER_H_ |
OLD | NEW |