Index: mojo/public/bindings/js/waiting_callback.h |
diff --git a/mojo/public/bindings/js/waiting_callback.h b/mojo/public/bindings/js/waiting_callback.h |
deleted file mode 100644 |
index 4a5e3e449dd72016d0aac17230b24e58e9c813fa..0000000000000000000000000000000000000000 |
--- a/mojo/public/bindings/js/waiting_callback.h |
+++ /dev/null |
@@ -1,56 +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_BINDINGS_JS_WAITING_CALLBACK_H_ |
-#define MOJO_PUBLIC_BINDINGS_JS_WAITING_CALLBACK_H_ |
- |
-#include "gin/runner.h" |
-#include "gin/wrappable.h" |
-#include "mojo/public/bindings/lib/bindings_support.h" |
- |
-namespace mojo { |
-namespace js { |
- |
-class WaitingCallback : public gin::Wrappable, |
- public BindingsSupport::AsyncWaitCallback { |
- public: |
- static scoped_refptr<WaitingCallback> Create( |
- v8::Isolate* isolate, v8::Handle<v8::Function> callback); |
- |
- static gin::WrapperInfo kWrapperInfo; |
- virtual gin::WrapperInfo* GetWrapperInfo() OVERRIDE; |
- static void EnsureRegistered(v8::Isolate* isolate); |
- |
- BindingsSupport::AsyncWaitID wait_id() const { |
- return wait_id_; |
- } |
- |
- void set_wait_id(BindingsSupport::AsyncWaitID wait_id) { |
- wait_id_ = wait_id; |
- } |
- |
- private: |
- WaitingCallback(v8::Isolate* isolate, v8::Handle<v8::Function> callback); |
- virtual ~WaitingCallback(); |
- |
- virtual void OnHandleReady(MojoResult result) OVERRIDE; |
- |
- base::WeakPtr<gin::Runner> runner_; |
- BindingsSupport::AsyncWaitID wait_id_; |
- |
- DISALLOW_COPY_AND_ASSIGN(WaitingCallback); |
-}; |
- |
-} // namespace js |
-} // namespace mojo |
- |
-namespace gin { |
- |
-template<> |
-struct Converter<mojo::js::WaitingCallback*> |
- : public WrappableConverter<mojo::js::WaitingCallback> {}; |
- |
-} // namespace gin |
- |
-#endif // MOJO_PUBLIC_BINDINGS_JS_WAITING_CALLBACK_H_ |