| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be | 
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. | 
| 4 | 4 | 
| 5 #ifndef MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 5 #ifndef MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 
| 6 #define MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 6 #define MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 
| 7 | 7 | 
| 8 #include "gin/handle.h" | 8 #include "gin/handle.h" | 
| 9 #include "gin/runner.h" | 9 #include "gin/runner.h" | 
| 10 #include "gin/wrappable.h" | 10 #include "gin/wrappable.h" | 
| 11 #include "mojo/public/c/system/async_waiter.h" | 11 #include "mojo/public/c/environment/async_waiter.h" | 
| 12 | 12 | 
| 13 namespace mojo { | 13 namespace mojo { | 
| 14 namespace js { | 14 namespace js { | 
| 15 | 15 | 
| 16 class WaitingCallback : public gin::Wrappable<WaitingCallback> { | 16 class WaitingCallback : public gin::Wrappable<WaitingCallback> { | 
| 17  public: | 17  public: | 
| 18   static gin::WrapperInfo kWrapperInfo; | 18   static gin::WrapperInfo kWrapperInfo; | 
| 19 | 19 | 
| 20   static gin::Handle<WaitingCallback> Create( | 20   static gin::Handle<WaitingCallback> Create( | 
| 21       v8::Isolate* isolate, v8::Handle<v8::Function> callback); | 21       v8::Isolate* isolate, v8::Handle<v8::Function> callback); | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
| 40   base::WeakPtr<gin::Runner> runner_; | 40   base::WeakPtr<gin::Runner> runner_; | 
| 41   MojoAsyncWaitID wait_id_; | 41   MojoAsyncWaitID wait_id_; | 
| 42 | 42 | 
| 43   DISALLOW_COPY_AND_ASSIGN(WaitingCallback); | 43   DISALLOW_COPY_AND_ASSIGN(WaitingCallback); | 
| 44 }; | 44 }; | 
| 45 | 45 | 
| 46 }  // namespace js | 46 }  // namespace js | 
| 47 }  // namespace mojo | 47 }  // namespace mojo | 
| 48 | 48 | 
| 49 #endif  // MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 49 #endif  // MOJO_BINDINGS_JS_WAITING_CALLBACK_H_ | 
| OLD | NEW | 
|---|