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 24 matching lines...) Expand all Loading... |
35 | 35 |
36 namespace v8 { | 36 namespace v8 { |
37 class Isolate; | 37 class Isolate; |
38 } | 38 } |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 class WorkerGlobalScope; | 42 class WorkerGlobalScope; |
43 class WorkerThread; | 43 class WorkerThread; |
44 | 44 |
45 class WorkerScriptDebugServer : public ScriptDebugServer { | 45 class WorkerScriptDebugServer FINAL : public ScriptDebugServer { |
46 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); | 46 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); |
47 public: | 47 public: |
48 WorkerScriptDebugServer(WorkerGlobalScope*, const String&); | 48 WorkerScriptDebugServer(WorkerGlobalScope*, const String&); |
49 ~WorkerScriptDebugServer() { } | 49 ~WorkerScriptDebugServer() { } |
50 | 50 |
51 void addListener(ScriptDebugListener*); | 51 void addListener(ScriptDebugListener*); |
52 void removeListener(ScriptDebugListener*); | 52 void removeListener(ScriptDebugListener*); |
53 | 53 |
54 void interruptAndRunTask(PassOwnPtr<Task>); | 54 void interruptAndRunTask(PassOwnPtr<Task>); |
55 | 55 |
56 private: | 56 private: |
57 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>); | 57 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) OVERRIDE; |
58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>); | 58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE; |
59 virtual void quitMessageLoopOnPause(); | 59 virtual void quitMessageLoopOnPause() OVERRIDE; |
60 | 60 |
61 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap; | 61 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap; |
62 ScriptDebugListener* m_listener; | 62 ScriptDebugListener* m_listener; |
63 WorkerGlobalScope* m_workerGlobalScope; | 63 WorkerGlobalScope* m_workerGlobalScope; |
64 String m_debuggerTaskMode; | 64 String m_debuggerTaskMode; |
65 }; | 65 }; |
66 | 66 |
67 } // namespace WebCore | 67 } // namespace WebCore |
68 | 68 |
69 #endif // WorkerScriptDebugServer_h | 69 #endif // WorkerScriptDebugServer_h |
OLD | NEW |