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 27 matching lines...) Expand all Loading... |
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 FINAL : 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*); | 48 explicit WorkerScriptDebugServer(WorkerGlobalScope*); |
49 virtual ~WorkerScriptDebugServer() { } | 49 virtual ~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>) OVERRIDE; | 57 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) OVERRIDE; |
58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE; | 58 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE; |
59 virtual void quitMessageLoopOnPause() OVERRIDE; | 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 }; | 64 }; |
65 | 65 |
66 } // namespace WebCore | 66 } // namespace WebCore |
67 | 67 |
68 #endif // WorkerScriptDebugServer_h | 68 #endif // WorkerScriptDebugServer_h |
OLD | NEW |