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

Unified Diff: mojo/public/tests/simple_bindings_support.h

Issue 69283002: Revert "Mojo: Add BindingsSupportImpl on top of HandleWatcher" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « mojo/public/bindings/lib/connector.cc ('k') | mojo/public/tests/simple_bindings_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/tests/simple_bindings_support.h
diff --git a/mojo/public/tests/simple_bindings_support.h b/mojo/public/tests/simple_bindings_support.h
index 59131ba185b0e6750aadfebaa83bbbabb28c7e45..c22de82f35f2a9ed8037b3c1774e42a7b46a7cb3 100644
--- a/mojo/public/tests/simple_bindings_support.h
+++ b/mojo/public/tests/simple_bindings_support.h
@@ -17,10 +17,11 @@ class SimpleBindingsSupport : public BindingsSupport {
SimpleBindingsSupport();
virtual ~SimpleBindingsSupport();
- virtual AsyncWaitID AsyncWait(Handle handle,
- MojoWaitFlags flags,
- AsyncWaitCallback* callback) MOJO_OVERRIDE;
- virtual void CancelWait(AsyncWaitID async_wait_id) MOJO_OVERRIDE;
+ virtual bool AsyncWait(Handle handle,
+ MojoWaitFlags flags,
+ MojoDeadline deadline,
+ AsyncWaitCallback* callback) MOJO_OVERRIDE;
+ virtual void CancelWait(AsyncWaitCallback* callback) MOJO_OVERRIDE;
// This method is called by unit tests to check the status of any handles
// that we are asynchronously waiting on and to dispatch callbacks for any
@@ -33,11 +34,11 @@ class SimpleBindingsSupport : public BindingsSupport {
struct Waiter {
Handle handle;
MojoWaitFlags flags;
+ MojoDeadline deadline;
AsyncWaitCallback* callback;
};
- typedef std::list<Waiter*> WaiterList;
- WaiterList waiters_;
+ std::list<Waiter> waiters_;
};
} // namespace test
« no previous file with comments | « mojo/public/bindings/lib/connector.cc ('k') | mojo/public/tests/simple_bindings_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698