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 20 matching lines...) Expand all Loading... |
31 #ifndef WorkerScriptDebugServer_h | 31 #ifndef WorkerScriptDebugServer_h |
32 #define WorkerScriptDebugServer_h | 32 #define WorkerScriptDebugServer_h |
33 | 33 |
34 #include "bindings/core/v8/ScriptDebugServer.h" | 34 #include "bindings/core/v8/ScriptDebugServer.h" |
35 #include <v8.h> | 35 #include <v8.h> |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WorkerGlobalScope; | 39 class WorkerGlobalScope; |
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 explicit WorkerScriptDebugServer(WorkerGlobalScope*); | 44 explicit WorkerScriptDebugServer(WorkerGlobalScope*); |
45 virtual ~WorkerScriptDebugServer() { } | 45 virtual ~WorkerScriptDebugServer() { } |
46 | 46 |
47 void addListener(ScriptDebugListener*); | 47 void addListener(ScriptDebugListener*); |
48 void removeListener(ScriptDebugListener*); | 48 void removeListener(ScriptDebugListener*); |
49 | 49 |
50 void interruptAndRunTask(PassOwnPtr<Task>); | 50 void interruptAndRunTask(PassOwnPtr<Task>); |
51 | 51 |
52 private: | 52 private: |
53 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) OVERRIDE; | 53 virtual ScriptDebugListener* getDebugListenerForContext(v8::Handle<v8::Conte
xt>) override; |
54 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) OVERRIDE; | 54 virtual void runMessageLoopOnPause(v8::Handle<v8::Context>) override; |
55 virtual void quitMessageLoopOnPause() OVERRIDE; | 55 virtual void quitMessageLoopOnPause() override; |
56 | 56 |
57 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap; | 57 typedef HashMap<WorkerGlobalScope*, ScriptDebugListener*> ListenersMap; |
58 ScriptDebugListener* m_listener; | 58 ScriptDebugListener* m_listener; |
59 WorkerGlobalScope* m_workerGlobalScope; | 59 WorkerGlobalScope* m_workerGlobalScope; |
60 }; | 60 }; |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
63 | 63 |
64 #endif // WorkerScriptDebugServer_h | 64 #endif // WorkerScriptDebugServer_h |
OLD | NEW |