OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 Google Inc. All rights reserved. | 2 * Copyright (c) 2011 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 }; | 55 }; |
56 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>); | 56 void setClientMessageLoop(PassOwnPtr<ClientMessageLoop>); |
57 | 57 |
58 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionMessage); | 58 virtual void compileScript(ScriptState*, const String& expression, const Str
ing& sourceURL, String* scriptId, String* exceptionMessage); |
59 virtual void clearCompiledScripts(); | 59 virtual void clearCompiledScripts(); |
60 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionMessage); | 60 virtual void runScript(ScriptState*, const String& scriptId, ScriptValue* re
sult, bool* wasThrown, String* exceptionMessage); |
61 | 61 |
62 private: | 62 private: |
63 PageScriptDebugServer(); | 63 PageScriptDebugServer(); |
64 virtual ~PageScriptDebugServer() { } | 64 virtual ~PageScriptDebugServer() { } |
65 | 65 |
66 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>); | 66 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>); |
67 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>); | 67 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>); |
68 virtual void quitMessageLoopOnPause(); | 68 virtual void quitMessageLoopOnPause(); |
69 | 69 |
70 typedef HashMap<Page*, ScriptDebugListener*> ListenersMap; | 70 typedef HashMap<Page*, ScriptDebugListener*> ListenersMap; |
71 ListenersMap m_listenersMap; | 71 ListenersMap m_listenersMap; |
72 OwnPtr<ClientMessageLoop> m_clientMessageLoop; | 72 OwnPtr<ClientMessageLoop> m_clientMessageLoop; |
73 Page* m_pausedPage; | 73 Page* m_pausedPage; |
74 HashMap<String, String> m_compiledScriptURLs; | 74 HashMap<String, String> m_compiledScriptURLs; |
75 }; | 75 }; |
76 | 76 |
77 } // namespace WebCore | 77 } // namespace WebCore |
78 | 78 |
79 | 79 |
80 #endif // PageScriptDebugServer_h | 80 #endif // PageScriptDebugServer_h |
OLD | NEW |