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

Side by Side Diff: mojo/edk/js/waiting_callback.h

Issue 1676913002: [mojo] Delete third_party/mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: let's try that again Created 4 years, 10 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 unified diff | Download patch
« no previous file with comments | « mojo/edk/js/threading.cc ('k') | mojo/edk/js/waiting_callback.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_EDK_JS_WAITING_CALLBACK_H_ 5 #ifndef MOJO_EDK_JS_WAITING_CALLBACK_H_
6 #define MOJO_EDK_JS_WAITING_CALLBACK_H_ 6 #define MOJO_EDK_JS_WAITING_CALLBACK_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "gin/handle.h" 10 #include "gin/handle.h"
11 #include "gin/runner.h" 11 #include "gin/runner.h"
12 #include "gin/wrappable.h" 12 #include "gin/wrappable.h"
13 #include "mojo/edk/js/handle.h" 13 #include "mojo/edk/js/handle.h"
14 #include "mojo/edk/js/handle_close_observer.h" 14 #include "mojo/edk/js/handle_close_observer.h"
15 #include "mojo/public/c/environment/async_waiter.h" 15 #include "mojo/public/c/environment/async_waiter.h"
16 #include "mojo/public/cpp/system/core.h" 16 #include "mojo/public/cpp/system/core.h"
17 17
18 namespace mojo { 18 namespace mojo {
19 namespace edk { 19 namespace edk {
20 namespace js {
20 21
21 class WaitingCallback : public gin::Wrappable<WaitingCallback>, 22 class WaitingCallback : public gin::Wrappable<WaitingCallback>,
22 public HandleCloseObserver { 23 public HandleCloseObserver {
23 public: 24 public:
24 static gin::WrapperInfo kWrapperInfo; 25 static gin::WrapperInfo kWrapperInfo;
25 26
26 // Creates a new WaitingCallback. 27 // Creates a new WaitingCallback.
27 static gin::Handle<WaitingCallback> Create( 28 static gin::Handle<WaitingCallback> Create(
28 v8::Isolate* isolate, 29 v8::Isolate* isolate,
29 v8::Handle<v8::Function> callback, 30 v8::Handle<v8::Function> callback,
(...skipping 26 matching lines...) Expand all
56 57
57 base::WeakPtr<gin::Runner> runner_; 58 base::WeakPtr<gin::Runner> runner_;
58 MojoAsyncWaitID wait_id_; 59 MojoAsyncWaitID wait_id_;
59 60
60 HandleWrapper* handle_wrapper_; 61 HandleWrapper* handle_wrapper_;
61 base::WeakPtrFactory<WaitingCallback> weak_factory_; 62 base::WeakPtrFactory<WaitingCallback> weak_factory_;
62 63
63 DISALLOW_COPY_AND_ASSIGN(WaitingCallback); 64 DISALLOW_COPY_AND_ASSIGN(WaitingCallback);
64 }; 65 };
65 66
67 } // namespace js
66 } // namespace edk 68 } // namespace edk
67 } // namespace mojo 69 } // namespace mojo
68 70
69 #endif // MOJO_EDK_JS_WAITING_CALLBACK_H_ 71 #endif // MOJO_EDK_JS_WAITING_CALLBACK_H_
OLDNEW
« no previous file with comments | « mojo/edk/js/threading.cc ('k') | mojo/edk/js/waiting_callback.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698