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

Side by Side Diff: sky/engine/bindings/core/v8/ScriptPromiseResolver.h

Issue 726133002: Use root-relative V8 includes (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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
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 ScriptPromiseResolver_h 5 #ifndef ScriptPromiseResolver_h
6 #define ScriptPromiseResolver_h 6 #define ScriptPromiseResolver_h
7 7
8 #include "bindings/core/v8/ScopedPersistent.h" 8 #include "bindings/core/v8/ScopedPersistent.h"
9 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
10 #include "bindings/core/v8/ScriptState.h" 10 #include "bindings/core/v8/ScriptState.h"
11 #include "bindings/core/v8/V8Binding.h" 11 #include "bindings/core/v8/V8Binding.h"
12 #include "core/dom/ActiveDOMObject.h" 12 #include "core/dom/ActiveDOMObject.h"
13 #include "core/dom/ExecutionContext.h" 13 #include "core/dom/ExecutionContext.h"
14 #include "platform/Timer.h" 14 #include "platform/Timer.h"
15 #include "v8/include/v8.h"
15 #include "wtf/RefCounted.h" 16 #include "wtf/RefCounted.h"
16 #include <v8.h>
17 17
18 namespace blink { 18 namespace blink {
19 19
20 // This class wraps v8::Promise::Resolver and provides the following 20 // This class wraps v8::Promise::Resolver and provides the following
21 // functionalities. 21 // functionalities.
22 // - A ScriptPromiseResolver retains a ScriptState. A caller 22 // - A ScriptPromiseResolver retains a ScriptState. A caller
23 // can call resolve or reject from outside of a V8 context. 23 // can call resolve or reject from outside of a V8 context.
24 // - This class is an ActiveDOMObject and keeps track of the associated 24 // - This class is an ActiveDOMObject and keeps track of the associated
25 // ExecutionContext state. When the ExecutionContext is suspended, 25 // ExecutionContext state. When the ExecutionContext is suspended,
26 // resolve or reject will be delayed. When it is stopped, resolve or reject 26 // resolve or reject will be delayed. When it is stopped, resolve or reject
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ScopedPersistent<v8::Value> m_value; 138 ScopedPersistent<v8::Value> m_value;
139 #if ENABLE(ASSERT) 139 #if ENABLE(ASSERT)
140 // True if promise() is called. 140 // True if promise() is called.
141 bool m_isPromiseCalled; 141 bool m_isPromiseCalled;
142 #endif 142 #endif
143 }; 143 };
144 144
145 } // namespace blink 145 } // namespace blink
146 146
147 #endif // #ifndef ScriptPromiseResolver_h 147 #endif // #ifndef ScriptPromiseResolver_h
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptPromisePropertyBase.h ('k') | sky/engine/bindings/core/v8/ScriptState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698