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 29 matching lines...) Expand all Loading... |
40 | 40 |
41 class WorkerScriptDebugServer final : public ScriptDebugServer { | 41 class WorkerScriptDebugServer final : public ScriptDebugServer { |
42 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); | 42 WTF_MAKE_NONCOPYABLE(WorkerScriptDebugServer); |
43 public: | 43 public: |
44 static PassOwnPtrWillBeRawPtr<WorkerScriptDebugServer> create(WorkerGlobalSc
ope* workerGlobalScope) | 44 static PassOwnPtrWillBeRawPtr<WorkerScriptDebugServer> create(WorkerGlobalSc
ope* workerGlobalScope) |
45 { | 45 { |
46 return adoptPtrWillBeNoop(new WorkerScriptDebugServer(workerGlobalScope)
); | 46 return adoptPtrWillBeNoop(new WorkerScriptDebugServer(workerGlobalScope)
); |
47 } | 47 } |
48 | 48 |
49 ~WorkerScriptDebugServer() override { } | 49 ~WorkerScriptDebugServer() override { } |
50 void trace(Visitor*) override; | 50 DECLARE_VIRTUAL_TRACE(); |
51 | 51 |
52 void addListener(ScriptDebugListener*); | 52 void addListener(ScriptDebugListener*); |
53 void removeListener(ScriptDebugListener*); | 53 void removeListener(ScriptDebugListener*); |
54 | 54 |
55 void interruptAndRunTask(PassOwnPtr<Task>); | 55 void interruptAndRunTask(PassOwnPtr<Task>); |
56 | 56 |
57 private: | 57 private: |
58 explicit WorkerScriptDebugServer(WorkerGlobalScope*); | 58 explicit WorkerScriptDebugServer(WorkerGlobalScope*); |
59 | 59 |
60 ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Context>) ove
rride; | 60 ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Context>) ove
rride; |
61 void runMessageLoopOnPause(v8::Handle<v8::Context>) override; | 61 void runMessageLoopOnPause(v8::Handle<v8::Context>) override; |
62 void quitMessageLoopOnPause() override; | 62 void quitMessageLoopOnPause() override; |
63 | 63 |
64 ScriptDebugListener* m_listener; | 64 ScriptDebugListener* m_listener; |
65 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; | 65 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace blink | 68 } // namespace blink |
69 | 69 |
70 #endif // WorkerScriptDebugServer_h | 70 #endif // WorkerScriptDebugServer_h |
OLD | NEW |