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

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

Issue 189453003: Moves around mojo js bindings code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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
« no previous file with comments | « mojo/apps/js/bindings/threading.cc ('k') | mojo/apps/js/bindings/waiting_callback.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/apps/js/bindings/waiting_callback.h
diff --git a/mojo/apps/js/bindings/waiting_callback.h b/mojo/apps/js/bindings/waiting_callback.h
deleted file mode 100644
index c8410286d043826357ebcf09b449582ce58dbe49..0000000000000000000000000000000000000000
--- a/mojo/apps/js/bindings/waiting_callback.h
+++ /dev/null
@@ -1,49 +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_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
-#define MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
-
-#include "gin/handle.h"
-#include "gin/runner.h"
-#include "gin/wrappable.h"
-#include "mojo/public/system/async_waiter.h"
-
-namespace mojo {
-namespace js {
-
-class WaitingCallback : public gin::Wrappable<WaitingCallback> {
- public:
- static gin::WrapperInfo kWrapperInfo;
-
- static gin::Handle<WaitingCallback> Create(
- v8::Isolate* isolate, v8::Handle<v8::Function> callback);
-
- MojoAsyncWaitID wait_id() const {
- return wait_id_;
- }
-
- void set_wait_id(MojoAsyncWaitID wait_id) {
- wait_id_ = wait_id;
- }
-
- // MojoAsyncWaitCallback
- static void CallOnHandleReady(void* closure, MojoResult result);
-
- private:
- WaitingCallback(v8::Isolate* isolate, v8::Handle<v8::Function> callback);
- virtual ~WaitingCallback();
-
- void OnHandleReady(MojoResult result);
-
- base::WeakPtr<gin::Runner> runner_;
- MojoAsyncWaitID wait_id_;
-
- DISALLOW_COPY_AND_ASSIGN(WaitingCallback);
-};
-
-} // namespace js
-} // namespace mojo
-
-#endif // MOJO_APPS_JS_BINDINGS_WAITING_CALLBACK_H_
« no previous file with comments | « mojo/apps/js/bindings/threading.cc ('k') | mojo/apps/js/bindings/waiting_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698