| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MESSAGE_PIPE_DISPATCHER_H_ | 5 #ifndef MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 6 #define MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "mojo/edk/embedder/platform_channel_pair.h" | 9 #include "mojo/edk/embedder/platform_channel_pair.h" |
| 10 #include "mojo/edk/system/awakable_list.h" | 10 #include "mojo/edk/system/awakable_list.h" |
| 11 #include "mojo/edk/system/dispatcher.h" | 11 #include "mojo/edk/system/dispatcher.h" |
| 12 #include "mojo/edk/system/raw_channel.h" | 12 #include "mojo/edk/system/raw_channel.h" |
| 13 #include "mojo/edk/system/system_impl_export.h" | 13 #include "mojo/edk/system/system_impl_export.h" |
| 14 #include "third_party/mojo/src/mojo/public/cpp/system/macros.h" | 14 #include "mojo/public/cpp/system/macros.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace edk { | 17 namespace edk { |
| 18 | 18 |
| 19 // This is the |Dispatcher| implementation for message pipes (created by the | 19 // This is the |Dispatcher| implementation for message pipes (created by the |
| 20 // Mojo primitive |MojoCreateMessagePipe()|). This class is thread-safe. | 20 // Mojo primitive |MojoCreateMessagePipe()|). This class is thread-safe. |
| 21 class MOJO_SYSTEM_IMPL_EXPORT MessagePipeDispatcher final | 21 class MOJO_SYSTEM_IMPL_EXPORT MessagePipeDispatcher final |
| 22 : public Dispatcher, public RawChannel::Delegate { | 22 : public Dispatcher, public RawChannel::Delegate { |
| 23 public: | 23 public: |
| 24 // The default options to use for |MojoCreateMessagePipe()|. (Real uses | 24 // The default options to use for |MojoCreateMessagePipe()|. (Real uses |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 bool calling_init_; | 142 bool calling_init_; |
| 143 bool write_error_; | 143 bool write_error_; |
| 144 | 144 |
| 145 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); | 145 MOJO_DISALLOW_COPY_AND_ASSIGN(MessagePipeDispatcher); |
| 146 }; | 146 }; |
| 147 | 147 |
| 148 } // namespace edk | 148 } // namespace edk |
| 149 } // namespace mojo | 149 } // namespace mojo |
| 150 | 150 |
| 151 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ | 151 #endif // MOJO_EDK_SYSTEM_MESSAGE_PIPE_DISPATCHER_H_ |
| OLD | NEW |