OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |
| 6 #define MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |
| 7 |
| 8 #include "mojo/public/system/core.h" |
| 9 |
| 10 namespace mojo { |
| 11 |
| 12 class BindingsSupport { |
| 13 public: |
| 14 class AsyncWaitCallback { |
| 15 public: |
| 16 virtual void OnHandleReady(MojoResult result) = 0; |
| 17 }; |
| 18 |
| 19 virtual bool AsyncWait(Handle handle, |
| 20 MojoWaitFlags flags, |
| 21 MojoDeadline deadline, |
| 22 AsyncWaitCallback* callback) = 0; |
| 23 |
| 24 virtual void CancelWait(AsyncWaitCallback* callback) = 0; |
| 25 |
| 26 static void Set(BindingsSupport* support); |
| 27 static BindingsSupport* Get(); |
| 28 }; |
| 29 |
| 30 } // namespace mojo |
| 31 |
| 32 #endif // MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |
OLD | NEW |