| Index: Source/bindings/dart/DartController.h
|
| diff --git a/Source/bindings/dart/DartController.h b/Source/bindings/dart/DartController.h
|
| index 5cd255fb0b7a0aadf1f8cde069562e6156d85982..504c69a36b6b048d7c81c153f4962e2a0dc51ab6 100644
|
| --- a/Source/bindings/dart/DartController.h
|
| +++ b/Source/bindings/dart/DartController.h
|
| @@ -44,9 +44,11 @@ namespace WebCore {
|
|
|
| class DartApplicationLoader;
|
| class DartDOMData;
|
| +class DartScriptState;
|
| class DOMWindow;
|
| class Frame;
|
| class ScriptExecutionContext;
|
| +class ScriptState;
|
|
|
| // This class provides the linkage between a Frame and its attached
|
| // Dart isolates. It is similar to ScriptController for JavaScript.
|
| @@ -70,6 +72,8 @@ public:
|
| void startDart();
|
|
|
| Frame* frame() const { return m_frame; }
|
| + void collectScriptStates(ScriptState* v8ScriptState, Vector<ScriptState*>& result);
|
| + void collectScriptStatesForIsolate(Dart_Isolate, v8::Handle<v8::Context> v8Context, Vector<ScriptState*>& result);
|
|
|
| void spawnDomIsolateFromSelf(const String& libraryUrl, const String& entryPoint, DartDOMData* parentDOMData, Dart_Port replyTo);
|
| void spawnDomIsolateFromUrl(const String& url, Dart_Port replyTo);
|
| @@ -101,6 +105,10 @@ private:
|
| // Isolates associated with scripts in this document.
|
| Vector<Dart_Isolate> m_isolates;
|
|
|
| + typedef HashMap<intptr_t, DartScriptState*> LibraryIdMap;
|
| + typedef HashMap<Dart_Isolate, LibraryIdMap*> ScriptStatesMap;
|
| + ScriptStatesMap m_scriptStates;
|
| +
|
| typedef HashMap<String, NPObject*> NPObjectMap;
|
| NPObjectMap m_npObjectMap;
|
|
|
|
|