OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_EDK_SYSTEM_ENTRYPOINT_CLASS_H_ |
| 6 #define MOJO_EDK_SYSTEM_ENTRYPOINT_CLASS_H_ |
| 7 |
| 8 namespace mojo { |
| 9 namespace system { |
| 10 |
| 11 // Classes of "entrypoints"/"syscalls": Each dispatcher should support entire |
| 12 // classes of methods (and if they don't support a given class, they should |
| 13 // return |MOJO_RESULT_INVALID_ARGUMENT| for all the methods in that class). |
| 14 // Warning: A dispatcher method may be called even if the dispatcher's |
| 15 // |SupportsEntrypointClass()| indicates that the method's class is not |
| 16 // supported. |
| 17 enum class EntrypointClass { |
| 18 // |Dispatcher::ReadMessage()|, |Dispatcher::WriteMessage()|: |
| 19 MESSAGE_PIPE, |
| 20 |
| 21 // |Dispatcher::SetDataPipeProducerOptions()|, |
| 22 // |Dispatcher::GetDataPipeProducerOptions()|, |
| 23 // |Dispatcher::WriteData()|, |Dispatcher::BeginWriteData()|, |
| 24 // |Dispatcher::EndWriteData()|: |
| 25 DATA_PIPE_PRODUCER, |
| 26 |
| 27 // |Dispatcher::SetDataPipeConsumerOptions()|, |
| 28 // |Dispatcher::GetDataPipeConsumerOptions()|, |Dispatcher::ReadData()|, |
| 29 // |Dispatcher::BeginReadData()|, |Dispatcher::EndReadData()|: |
| 30 DATA_PIPE_CONSUMER, |
| 31 |
| 32 // |Dispatcher::DuplicateBufferHandle()|, |
| 33 // |Dispatcher::GetBufferInformation()|, |Dispatcher::MapBuffer()|: |
| 34 BUFFER, |
| 35 }; |
| 36 |
| 37 } // namespace system |
| 38 } // namespace mojo |
| 39 |
| 40 #endif // MOJO_EDK_SYSTEM_ENTRYPOINT_CLASS_H_ |
OLD | NEW |