| 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 ScriptPromisePropertyBase_h | 5 #ifndef ScriptPromisePropertyBase_h |
| 6 #define ScriptPromisePropertyBase_h | 6 #define ScriptPromisePropertyBase_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/ScriptPromiseProperties.h" | 10 #include "bindings/core/v8/ScriptPromiseProperties.h" |
| 11 #include "core/dom/ContextLifecycleObserver.h" | 11 #include "core/dom/ContextLifecycleObserver.h" |
| 12 #include "wtf/RefCounted.h" | 12 #include "wtf/RefCounted.h" |
| 13 #include <v8.h> | 13 #include <v8.h> |
| 14 | 14 |
| 15 namespace WebCore { | 15 namespace blink { |
| 16 | 16 |
| 17 class ExecutionContext; | 17 class ExecutionContext; |
| 18 | 18 |
| 19 class ScriptPromisePropertyBase : public RefCountedWillBeRefCountedGarbageCollec
ted<ScriptPromisePropertyBase>, public ContextLifecycleObserver { | 19 class ScriptPromisePropertyBase : public RefCountedWillBeRefCountedGarbageCollec
ted<ScriptPromisePropertyBase>, public ContextLifecycleObserver { |
| 20 public: | 20 public: |
| 21 virtual ~ScriptPromisePropertyBase(); | 21 virtual ~ScriptPromisePropertyBase(); |
| 22 | 22 |
| 23 enum Name { | 23 enum Name { |
| 24 #define P(Name) Name | 24 #define P(Name) Name |
| 25 SCRIPT_PROMISE_PROPERTIES(P) | 25 SCRIPT_PROMISE_PROPERTIES(P) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 60 |
| 61 v8::Isolate* m_isolate; | 61 v8::Isolate* m_isolate; |
| 62 Name m_name; | 62 Name m_name; |
| 63 State m_state; | 63 State m_state; |
| 64 | 64 |
| 65 // FIXME: When isolated worlds are supported replace this with a | 65 // FIXME: When isolated worlds are supported replace this with a |
| 66 // set of wrappers. | 66 // set of wrappers. |
| 67 ScopedPersistent<v8::Object> m_mainWorldWrapper; | 67 ScopedPersistent<v8::Object> m_mainWorldWrapper; |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 } // namespace WebCore | 70 } // namespace blink |
| 71 | 71 |
| 72 #endif // ScriptPromisePropertyBase_h | 72 #endif // ScriptPromisePropertyBase_h |
| OLD | NEW |