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

Unified Diff: mojo/public/bindings/js/waiting_callback.h

Issue 100573003: [Mojo] Move JS bindings out of public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix header guards Created 7 years 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/js/test/run_js_tests.cc ('k') | mojo/public/bindings/js/waiting_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « mojo/public/bindings/js/test/run_js_tests.cc ('k') | mojo/public/bindings/js/waiting_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698