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

Unified Diff: mojo/common/bindings_support_impl.h

Issue 62773003: Mojo: Add BindingsSupportImpl on top of HandleWatcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 | « no previous file | mojo/common/bindings_support_impl.cc » ('j') | mojo/common/bindings_support_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/common/bindings_support_impl.h
diff --git a/mojo/common/bindings_support_impl.h b/mojo/common/bindings_support_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..117864479454a2c54c3c3ffc7e4d35aafe966049
--- /dev/null
+++ b/mojo/common/bindings_support_impl.h
@@ -0,0 +1,39 @@
+// 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_COMMON_BINDINGS_SUPPORT_IMPL_H_
+#define MOJO_COMMON_BINDINGS_SUPPORT_IMPL_H_
+
+#include "mojo/public/bindings/lib/bindings_support.h"
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/ref_counted.h"
+#include "mojo/common/mojo_common_export.h"
+
+namespace mojo {
+namespace common {
+
+class MOJO_COMMON_EXPORT BindingsSupportImpl
+ : NON_EXPORTED_BASE(public BindingsSupport) {
+ public:
+ BindingsSupportImpl();
+ virtual ~BindingsSupportImpl();
+
+ // BindingsSupport methods:
+ virtual AsyncWaitID AsyncWait(Handle handle, MojoWaitFlags flags,
+ AsyncWaitCallback* callback) OVERRIDE;
+ virtual void CancelWait(AsyncWaitID async_wait_id) OVERRIDE;
+
+ private:
+ class Context;
+ scoped_refptr<Context> context_;
+
+ DISALLOW_COPY_AND_ASSIGN(BindingsSupportImpl);
+};
+
+} // namespace common
+} // namespace mojo
+
+#endif // MOJO_COMMON_BINDINGS_SUPPORT_IMPL_H_
« no previous file with comments | « no previous file | mojo/common/bindings_support_impl.cc » ('j') | mojo/common/bindings_support_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698