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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698