| OLD | NEW |
| 1 // Copyright 2011, Google Inc. | 1 // Copyright 2011, Google Inc. |
| 2 // All rights reserved. | 2 // 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 void shutdownIsolate(Dart_Isolate); | 101 void shutdownIsolate(Dart_Isolate); |
| 102 | 102 |
| 103 Dart_Isolate createDOMEnabledIsolate(const String& scriptURL, const String&
entryPoint, const char* packageRoot, Document*); | 103 Dart_Isolate createDOMEnabledIsolate(const String& scriptURL, const String&
entryPoint, const char* packageRoot, Document*); |
| 104 void scheduleScriptExecution(const String&, Dart_Isolate, PassRefPtr<DartScr
iptInfo>); | 104 void scheduleScriptExecution(const String&, Dart_Isolate, PassRefPtr<DartScr
iptInfo>); |
| 105 void loadAndRunScript(const String&, Dart_Isolate, PassRefPtr<DartScriptInfo
>); | 105 void loadAndRunScript(const String&, Dart_Isolate, PassRefPtr<DartScriptInfo
>); |
| 106 static void shutdownIsolateCallback(void* data); | 106 static void shutdownIsolateCallback(void* data); |
| 107 static Dart_Isolate createPureIsolateCallback(const char* prefix, const char
* main, const char* packageRoot, void* callbackData, char** errorMsg); | 107 static Dart_Isolate createPureIsolateCallback(const char* prefix, const char
* main, const char* packageRoot, void* callbackData, char** errorMsg); |
| 108 | 108 |
| 109 static void weakCallback(void* isolateCallbackData, Dart_WeakPersistentHandl
e, void* peer); | 109 static void weakCallback(void* isolateCallbackData, Dart_WeakPersistentHandl
e, void* peer); |
| 110 | 110 |
| 111 HashSet<Document*> m_documentsWithDart; | |
| 112 | |
| 113 LibraryIdMap* libraryIdMapForIsolate(Dart_Isolate); | 111 LibraryIdMap* libraryIdMapForIsolate(Dart_Isolate); |
| 114 DartScriptState* lookupScriptStateFromLibraryIdMap(Dart_Isolate, v8::Handle<
v8::Context>, LibraryIdMap*, intptr_t libraryId); | 112 DartScriptState* lookupScriptStateFromLibraryIdMap(Dart_Isolate, v8::Handle<
v8::Context>, LibraryIdMap*, intptr_t libraryId); |
| 115 | 113 |
| 114 String isolateName(Dart_Isolate); |
| 116 // The frame that owns this controller. | 115 // The frame that owns this controller. |
| 117 LocalFrame* m_frame; | 116 LocalFrame* m_frame; |
| 118 | 117 |
| 119 // Isolate associated with scripts in this document. | 118 // Isolate associated with scripts in this document. |
| 120 Vector<Dart_Isolate> m_isolates; | 119 Vector<Dart_Isolate> m_isolates; |
| 121 RefPtr<DartApplicationLoader> m_loader; | 120 typedef HashMap<Dart_Isolate, RefPtr<DartApplicationLoader> > DartApplicatio
nLoaderMap; |
| 121 |
| 122 DartApplicationLoaderMap m_loaders; |
| 123 RefPtr<DartApplicationLoader> m_mainLoader; |
| 124 HashMap<Dart_Isolate, String> m_isolateNames; |
| 125 HashSet<String> m_usedNames; |
| 122 | 126 |
| 123 ScriptStatesMap m_scriptStates; | 127 ScriptStatesMap m_scriptStates; |
| 124 | 128 |
| 125 typedef HashMap<String, NPObject*> NPObjectMap; | 129 typedef HashMap<String, NPObject*> NPObjectMap; |
| 126 NPObjectMap m_npObjectMap; | 130 NPObjectMap m_npObjectMap; |
| 127 | 131 |
| 128 friend class DartDomLoadCallback; | 132 friend class DartDomLoadCallback; |
| 129 friend class DartScriptRunner; | 133 friend class DartScriptRunner; |
| 130 friend class DartService; | 134 friend class DartService; |
| 131 }; | 135 }; |
| 132 | 136 |
| 133 } | 137 } |
| 134 | 138 |
| 135 #endif // DartController_h | 139 #endif // DartController_h |
| OLD | NEW |