Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(525)

Unified Diff: mojo/public/bindings/lib/bindings_support.h

Issue 54743003: Mojo: bindings connector (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Extract SimpleBindingsSupport Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698