Chromium Code Reviews| 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" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 private: | 63 private: |
| 64 typedef Vector<OwnPtr<ScopedPersistent<v8::Object>>> WeakPersistentSet; | 64 typedef Vector<OwnPtr<ScopedPersistent<v8::Object>>> WeakPersistentSet; |
| 65 | 65 |
| 66 void resolveOrRejectInternal(v8::Handle<v8::Promise::Resolver>); | 66 void resolveOrRejectInternal(v8::Handle<v8::Promise::Resolver>); |
| 67 v8::Local<v8::Object> ensureHolderWrapper(ScriptState*); | 67 v8::Local<v8::Object> ensureHolderWrapper(ScriptState*); |
| 68 void clearWrappers(); | 68 void clearWrappers(); |
| 69 | 69 |
| 70 v8::Handle<v8::String> promiseName(); | 70 v8::Handle<v8::String> promiseName(); |
| 71 v8::Handle<v8::String> resolverName(); | 71 v8::Handle<v8::String> resolverName(); |
| 72 | 72 |
| 73 // TODO(bashi): Constructor should take ScriptState and hold it instead of | |
| 74 // v8::Isolate*. | |
|
haraken
2015/03/25 05:08:29
Yeah, let's fix this in a follow-up. It looks wron
bashi
2015/03/25 07:25:32
Will do.
| |
| 73 v8::Isolate* m_isolate; | 75 v8::Isolate* m_isolate; |
| 74 Name m_name; | 76 Name m_name; |
| 75 State m_state; | 77 State m_state; |
| 76 | 78 |
| 77 WeakPersistentSet m_wrappers; | 79 WeakPersistentSet m_wrappers; |
| 78 }; | 80 }; |
| 79 | 81 |
| 80 } // namespace blink | 82 } // namespace blink |
| 81 | 83 |
| 82 #endif // ScriptPromisePropertyBase_h | 84 #endif // ScriptPromisePropertyBase_h |
| OLD | NEW |