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 #include "config.h" | 5 #include "config.h" |
6 #include "bindings/core/v8/ScriptPromiseResolver.h" | 6 #include "bindings/core/v8/ScriptPromiseResolver.h" |
7 | 7 |
8 namespace blink { | 8 namespace blink { |
9 | 9 |
10 ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* scriptState) | 10 ScriptPromiseResolver::ScriptPromiseResolver(ScriptState* scriptState) |
(...skipping 13 matching lines...) Expand all Loading... |
24 } | 24 } |
25 | 25 |
26 void ScriptPromiseResolver::suspend() | 26 void ScriptPromiseResolver::suspend() |
27 { | 27 { |
28 m_timer.stop(); | 28 m_timer.stop(); |
29 } | 29 } |
30 | 30 |
31 void ScriptPromiseResolver::resume() | 31 void ScriptPromiseResolver::resume() |
32 { | 32 { |
33 if (m_state == Resolving || m_state == Rejecting) | 33 if (m_state == Resolving || m_state == Rejecting) |
34 m_timer.startOneShot(0, FROM_HERE); | 34 m_timer.startOneShot(0, BLINK_FROM_HERE); |
35 } | 35 } |
36 | 36 |
37 void ScriptPromiseResolver::stop() | 37 void ScriptPromiseResolver::stop() |
38 { | 38 { |
39 m_timer.stop(); | 39 m_timer.stop(); |
40 clear(); | 40 clear(); |
41 } | 41 } |
42 | 42 |
43 void ScriptPromiseResolver::keepAliveWhilePending() | 43 void ScriptPromiseResolver::keepAliveWhilePending() |
44 { | 44 { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 m_value.clear(); | 89 m_value.clear(); |
90 m_keepAlive.clear(); | 90 m_keepAlive.clear(); |
91 } | 91 } |
92 | 92 |
93 DEFINE_TRACE(ScriptPromiseResolver) | 93 DEFINE_TRACE(ScriptPromiseResolver) |
94 { | 94 { |
95 ActiveDOMObject::trace(visitor); | 95 ActiveDOMObject::trace(visitor); |
96 } | 96 } |
97 | 97 |
98 } // namespace blink | 98 } // namespace blink |
OLD | NEW |