Index: mojo/public/bindings/lib/bindings_support.h |
diff --git a/mojo/public/bindings/lib/bindings_support.h b/mojo/public/bindings/lib/bindings_support.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b2928f43187486e86fc44049cea20f8f0559d44a |
--- /dev/null |
+++ b/mojo/public/bindings/lib/bindings_support.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |
+#define MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |
+ |
+#include "mojo/public/system/core.h" |
+ |
+namespace mojo { |
+ |
+class BindingsSupport { |
+ public: |
+ class AsyncWaitCallback { |
+ public: |
+ virtual void OnHandleReady(MojoResult result) = 0; |
+ }; |
+ |
+ virtual bool AsyncWait(Handle handle, |
+ MojoWaitFlags flags, |
+ MojoDeadline deadline, |
+ AsyncWaitCallback* callback) = 0; |
+ |
+ virtual void CancelWait(AsyncWaitCallback* callback) = 0; |
+ |
+ static void Set(BindingsSupport* support); |
+ static BindingsSupport* Get(); |
+}; |
+ |
+} // namespace mojo |
+ |
+#endif // MOJO_PUBLIC_BINDINGS_LIB_BINDINGS_SUPPORT_H_ |