OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 DartWebGlLibraryId, | 57 DartWebGlLibraryId, |
58 DartWebSqlLibraryId, | 58 DartWebSqlLibraryId, |
59 | 59 |
60 NumDartLibraryIds, | 60 NumDartLibraryIds, |
61 }; | 61 }; |
62 | 62 |
63 class ActiveDOMObject; | 63 class ActiveDOMObject; |
64 class CustomElementDefinition; | 64 class CustomElementDefinition; |
65 class DOMWindow; | 65 class DOMWindow; |
66 class DartApplicationLoader; | 66 class DartApplicationLoader; |
| 67 class DartAsyncLoader; |
67 class DartEventListener; | 68 class DartEventListener; |
68 class DartIsolateDestructionObserver; | 69 class DartIsolateDestructionObserver; |
69 class DartWeakCallback; | 70 class DartWeakCallback; |
70 class Element; | 71 class Element; |
71 class EventTarget; | 72 class EventTarget; |
72 class MessagePort; | 73 class MessagePort; |
73 class Node; | 74 class Node; |
74 class ScriptExecutionContext; | 75 class ScriptExecutionContext; |
75 class ThreadSafeDartIsolateWrapper; | 76 class ThreadSafeDartIsolateWrapper; |
76 | 77 |
(...skipping 20 matching lines...) Expand all Loading... |
97 bool isDOMEnabled() { return m_isDOMEnabled; } | 98 bool isDOMEnabled() { return m_isDOMEnabled; } |
98 | 99 |
99 int* recursion() { return &m_recursion; } | 100 int* recursion() { return &m_recursion; } |
100 DartStringCache& stringCache() { return m_stringCache; } | 101 DartStringCache& stringCache() { return m_stringCache; } |
101 | 102 |
102 void setThreadSafeIsolateWrapper(PassRefPtr<ThreadSafeDartIsolateWrapper>); | 103 void setThreadSafeIsolateWrapper(PassRefPtr<ThreadSafeDartIsolateWrapper>); |
103 PassRefPtr<ThreadSafeDartIsolateWrapper> threadSafeIsolateWrapper(); | 104 PassRefPtr<ThreadSafeDartIsolateWrapper> threadSafeIsolateWrapper(); |
104 | 105 |
105 void setApplicationLoader(PassRefPtr<DartApplicationLoader>); | 106 void setApplicationLoader(PassRefPtr<DartApplicationLoader>); |
106 PassRefPtr<DartApplicationLoader> applicationLoader(); | 107 PassRefPtr<DartApplicationLoader> applicationLoader(); |
| 108 |
| 109 void setAsyncLoader(PassRefPtr<DartAsyncLoader>); |
| 110 PassRefPtr<DartAsyncLoader> asyncLoader(); |
| 111 |
107 Vector<uint8_t>* applicationSnapshot() { return &m_applicationSnapshot; } | 112 Vector<uint8_t>* applicationSnapshot() { return &m_applicationSnapshot; } |
108 | 113 |
109 void setReachableWeakHandle(Dart_WeakPersistentHandle reachableWeakHandle) | 114 void setReachableWeakHandle(Dart_WeakPersistentHandle reachableWeakHandle) |
110 { | 115 { |
111 m_reachableWeakHandle = reachableWeakHandle; | 116 m_reachableWeakHandle = reachableWeakHandle; |
112 } | 117 } |
113 Dart_WeakPersistentHandle reachableWeakHandle() { return m_reachableWeakHand
le; } | 118 Dart_WeakPersistentHandle reachableWeakHandle() { return m_reachableWeakHand
le; } |
114 | 119 |
115 DartDOMNodeMap* nodeMap() { return &m_nodeMap; } | 120 DartDOMNodeMap* nodeMap() { return &m_nodeMap; } |
116 DartDOMObjectMap* objectMap() { return &m_objectMap; } | 121 DartDOMObjectMap* objectMap() { return &m_objectMap; } |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 211 } |
207 | 212 |
208 private: | 213 private: |
209 ScriptExecutionContext* m_scriptExecutionContext; | 214 ScriptExecutionContext* m_scriptExecutionContext; |
210 bool m_isDOMEnabled; | 215 bool m_isDOMEnabled; |
211 int m_recursion; | 216 int m_recursion; |
212 DartStringCache m_stringCache; | 217 DartStringCache m_stringCache; |
213 RefPtr<ThreadSafeDartIsolateWrapper> m_threadSafeIsolateWrapper; | 218 RefPtr<ThreadSafeDartIsolateWrapper> m_threadSafeIsolateWrapper; |
214 Mutex m_isolateWrapperMutex; | 219 Mutex m_isolateWrapperMutex; |
215 RefPtr<DartApplicationLoader> m_applicationLoader; | 220 RefPtr<DartApplicationLoader> m_applicationLoader; |
| 221 RefPtr<DartAsyncLoader> m_asyncLoader; |
216 Vector<uint8_t> m_applicationSnapshot; | 222 Vector<uint8_t> m_applicationSnapshot; |
217 Dart_WeakPersistentHandle m_reachableWeakHandle; | 223 Dart_WeakPersistentHandle m_reachableWeakHandle; |
218 | 224 |
219 DartDOMNodeMap m_nodeMap; | 225 DartDOMNodeMap m_nodeMap; |
220 DartDOMObjectMap m_objectMap; | 226 DartDOMObjectMap m_objectMap; |
221 DartMessagePortMap m_messagePortMap; | 227 DartMessagePortMap m_messagePortMap; |
222 DartActiveDOMObjectMap m_activeObjectMap; | 228 DartActiveDOMObjectMap m_activeObjectMap; |
223 DartEventTargetMap m_eventTargetMap; | 229 DartEventTargetMap m_eventTargetMap; |
224 DartWeakCallbacks m_weakCallbacks; | 230 DartWeakCallbacks m_weakCallbacks; |
225 DartIsolateDestructionObservers m_isolateDestructionObservers; | 231 DartIsolateDestructionObservers m_isolateDestructionObservers; |
226 DartCustomElementBindingMap m_customElementBindings; | 232 DartCustomElementBindingMap m_customElementBindings; |
227 ClassTable m_classHandleCache; | 233 ClassTable m_classHandleCache; |
228 LibraryTable m_libraryHandleCache; | 234 LibraryTable m_libraryHandleCache; |
229 DartUpgradingElementVector m_upgradingElements; | 235 DartUpgradingElementVector m_upgradingElements; |
230 }; | 236 }; |
231 | 237 |
232 } | 238 } |
233 | 239 |
234 #endif // DartDOMData_h | 240 #endif // DartDOMData_h |
OLD | NEW |