OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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_h |
| 6 #define Mojo_h |
| 7 |
| 8 #include "bindings/core/v8/ScriptWrappable.h" |
| 9 #include "mojo/public/cpp/system/core.h" |
| 10 |
| 11 namespace blink { |
| 12 |
| 13 class MojoCreateMessagePipeResult; |
| 14 |
| 15 class Mojo final : public GarbageCollected<Mojo>, public ScriptWrappable { |
| 16 DEFINE_WRAPPERTYPEINFO(); |
| 17 |
| 18 public: |
| 19 // MojoResult |
| 20 static const MojoResult kResultOk = MOJO_RESULT_OK; |
| 21 static const MojoResult kResultCancelled = MOJO_RESULT_CANCELLED; |
| 22 static const MojoResult kResultUnknown = MOJO_RESULT_UNKNOWN; |
| 23 static const MojoResult kResultInvalidArgument = MOJO_RESULT_INVALID_ARGUMENT; |
| 24 static const MojoResult kResultDeadlineExceeded = |
| 25 MOJO_RESULT_DEADLINE_EXCEEDED; |
| 26 static const MojoResult kResultNotFound = MOJO_RESULT_NOT_FOUND; |
| 27 static const MojoResult kResultAlreadyExists = MOJO_RESULT_ALREADY_EXISTS; |
| 28 static const MojoResult kResultPermissionDenied = |
| 29 MOJO_RESULT_PERMISSION_DENIED; |
| 30 static const MojoResult kResultResourceExhausted = |
| 31 MOJO_RESULT_RESOURCE_EXHAUSTED; |
| 32 static const MojoResult kResultFailedPrecondition = |
| 33 MOJO_RESULT_FAILED_PRECONDITION; |
| 34 static const MojoResult kResultAborted = MOJO_RESULT_ABORTED; |
| 35 static const MojoResult kResultOutOfRange = MOJO_RESULT_OUT_OF_RANGE; |
| 36 static const MojoResult kResultUnimplemented = MOJO_RESULT_UNIMPLEMENTED; |
| 37 static const MojoResult kResultInternal = MOJO_RESULT_INTERNAL; |
| 38 static const MojoResult kResultUnavailable = MOJO_RESULT_UNAVAILABLE; |
| 39 static const MojoResult kResultDataLoss = MOJO_RESULT_DATA_LOSS; |
| 40 static const MojoResult kResultBusy = MOJO_RESULT_BUSY; |
| 41 static const MojoResult kResultShouldWait = MOJO_RESULT_SHOULD_WAIT; |
| 42 |
| 43 static void createMessagePipe(MojoCreateMessagePipeResult&); |
| 44 |
| 45 DEFINE_INLINE_TRACE() {} |
| 46 }; |
| 47 |
| 48 } // namespace blink |
| 49 |
| 50 #endif // Mojo_h |
OLD | NEW |