Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(512)

Side by Side Diff: Source/bindings/dart/DartController.h

Issue 104433004: Enable VM service inside Dartium Renderer processes (Closed) Base URL: svn://svn.chromium.org/multivm/branches/1650/blink
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 Dart_Handle callFunction(Dart_Handle function, int argc, Dart_Handle* argv); 76 Dart_Handle callFunction(Dart_Handle function, int argc, Dart_Handle* argv);
77 77
78 Frame* frame() const { return m_frame; } 78 Frame* frame() const { return m_frame; }
79 void collectScriptStates(ScriptState* v8ScriptState, Vector<ScriptState*>& r esult); 79 void collectScriptStates(ScriptState* v8ScriptState, Vector<ScriptState*>& r esult);
80 void collectScriptStatesForIsolate(Dart_Isolate, v8::Handle<v8::Context> v8C ontext, Vector<ScriptState*>& result); 80 void collectScriptStatesForIsolate(Dart_Isolate, v8::Handle<v8::Context> v8C ontext, Vector<ScriptState*>& result);
81 DartScriptState* lookupScriptState(Dart_Isolate, v8::Handle<v8::Context> v8C ontext, intptr_t libraryId); 81 DartScriptState* lookupScriptState(Dart_Isolate, v8::Handle<v8::Context> v8C ontext, intptr_t libraryId);
82 82
83 static DartController* retrieve(Frame*); 83 static DartController* retrieve(Frame*);
84 static DartController* retrieve(ScriptExecutionContext*); 84 static DartController* retrieve(ScriptExecutionContext*);
85 85
86 Dart_Isolate isolate() { return m_isolate; }
87
86 private: 88 private:
87 static void initVMIfNeeded(); 89 static void initVMIfNeeded();
88 90
89 static Dart_Isolate createIsolate(const char* scriptURL, const char* entryPo int, Document*, bool isDOMEnabled, char** errorMessage); 91 static Dart_Isolate createIsolate(const char* scriptURL, const char* entryPo int, Document*, bool isDOMEnabled, char** errorMessage);
90 static void shutdownIsolate(Dart_Isolate); 92 static void shutdownIsolate(Dart_Isolate);
91 93
92 void createDOMEnabledIsolateIfNeeded(const String& scriptURL, const String& entryPoint, Document*); 94 void createDOMEnabledIsolateIfNeeded(const String& scriptURL, const String& entryPoint, Document*);
93 void scheduleScriptExecution(const String&, PassRefPtr<DartAsyncLoader>, Pas sRefPtr<DartScriptInfo>); 95 void scheduleScriptExecution(const String&, PassRefPtr<DartAsyncLoader>, Pas sRefPtr<DartScriptInfo>);
94 void loadAndRunScript(const String&, PassRefPtr<DartAsyncLoader>, PassRefPtr <DartScriptInfo>); 96 void loadAndRunScript(const String&, PassRefPtr<DartAsyncLoader>, PassRefPtr <DartScriptInfo>);
95 97
(...skipping 12 matching lines...) Expand all
108 DartAsyncLoader* m_asyncLoader; 110 DartAsyncLoader* m_asyncLoader;
109 RefPtr<DartApplicationLoader> m_loader; 111 RefPtr<DartApplicationLoader> m_loader;
110 112
111 ScriptStatesMap m_scriptStates; 113 ScriptStatesMap m_scriptStates;
112 114
113 typedef HashMap<String, NPObject*> NPObjectMap; 115 typedef HashMap<String, NPObject*> NPObjectMap;
114 NPObjectMap m_npObjectMap; 116 NPObjectMap m_npObjectMap;
115 117
116 friend class DartDomLoadCallback; 118 friend class DartDomLoadCallback;
117 friend class DartScriptRunner; 119 friend class DartScriptRunner;
120 friend class DartService;
118 }; 121 };
119 122
120 } 123 }
121 124
122 #endif // DartController_h 125 #endif // DartController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698