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

Unified Diff: mojo/public/utility/bindings_support_impl.h

Issue 134253004: Mojo: AsyncWaiter and mojo/public/environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing files Created 6 years, 11 months 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/utility/bindings_support_impl.h
diff --git a/mojo/public/utility/bindings_support_impl.h b/mojo/public/utility/bindings_support_impl.h
deleted file mode 100644
index 6216227e8c140d4305b7ea0a2891447cc255b80c..0000000000000000000000000000000000000000
--- a/mojo/public/utility/bindings_support_impl.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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_UTILITY_BINDINGS_SUPPORT_IMPL_H_
-#define MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_
-
-#include "mojo/public/bindings/lib/bindings_support.h"
-#include "mojo/public/system/macros.h"
-
-namespace mojo {
-namespace internal {
-
-// BindingsSupport implementation that uses RunLoop. Before using this you must
-// have created a RunLoop on the current thread.
-// You shouldn't create this directly, instead use Environment.
-class BindingsSupportImpl : public BindingsSupport {
- public:
- BindingsSupportImpl();
- virtual ~BindingsSupportImpl();
-
- // Sets up state needed for BindingsSupportImpl. This must be invoked before
- // creating a BindingsSupportImpl.
- static void SetUp();
-
- // Cleans state created by Setup().
- static void TearDown();
-
- // BindingsSupport methods:
- virtual Buffer* GetCurrentBuffer() MOJO_OVERRIDE;
- virtual Buffer* SetCurrentBuffer(Buffer* buf) MOJO_OVERRIDE;
- virtual AsyncWaitID AsyncWait(const Handle& handle,
- MojoWaitFlags flags,
- AsyncWaitCallback* callback) MOJO_OVERRIDE;
- virtual void CancelWait(AsyncWaitID async_wait_id) MOJO_OVERRIDE;
-
- private:
- MOJO_DISALLOW_COPY_AND_ASSIGN(BindingsSupportImpl);
-};
-
-} // namespace internal
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_UTILITY_BINDINGS_SUPPORT_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698