Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(26)

Side by Side Diff: Source/core/inspector/WorkerDebuggerAgent.h

Issue 1163923005: Fix crash in inspector-protocol/debugger/debugger-pause-dedicated-worker.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed printf Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 13 matching lines...) Expand all
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WorkerDebuggerAgent_h 31 #ifndef WorkerDebuggerAgent_h
32 #define WorkerDebuggerAgent_h 32 #define WorkerDebuggerAgent_h
33 33
34 #include "bindings/core/v8/WorkerThreadDebugger.h"
35 #include "core/inspector/InspectorDebuggerAgent.h" 34 #include "core/inspector/InspectorDebuggerAgent.h"
36 35
37 namespace blink { 36 namespace blink {
38 37
39 class WorkerGlobalScope; 38 class WorkerGlobalScope;
40 class WorkerDebuggerAgent; 39 class WorkerThreadDebugger;
41 40
42 class WorkerDebuggerAgent final : public InspectorDebuggerAgent { 41 class WorkerDebuggerAgent final : public InspectorDebuggerAgent {
43 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); 42 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent);
44 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent);
45 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent); 44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent);
46 public: 45 public:
47 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg er*, WorkerGlobalScope*, InjectedScriptManager*); 46 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg er*, WorkerGlobalScope*, InjectedScriptManager*);
48 ~WorkerDebuggerAgent() override; 47 ~WorkerDebuggerAgent() override;
49 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
50 49
51 void interruptAndDispatchInspectorCommands();
52
53 private: 50 private:
54 51
55 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip tManager*); 52 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip tManager*);
56 53
57 void startListeningV8Debugger() override; 54 void startListeningV8Debugger() override;
58 void stopListeningV8Debugger() override; 55 void stopListeningV8Debugger() override;
59 V8Debugger& debugger() override; 56 V8Debugger& debugger() override;
60 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override; 57 InjectedScript injectedScriptForEval(ErrorString*, const int* executionConte xtId) override;
61 void muteConsole() override; 58 void muteConsole() override;
62 void unmuteConsole() override; 59 void unmuteConsole() override;
63 60
64 WorkerThreadDebugger* m_workerThreadDebugger; 61 WorkerThreadDebugger* m_workerThreadDebugger;
65 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; 62 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope;
66 }; 63 };
67 64
68 } // namespace blink 65 } // namespace blink
69 66
70 #endif // !defined(WorkerDebuggerAgent_h) 67 #endif // !defined(WorkerDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorTaskRunner.cpp ('k') | Source/core/inspector/WorkerDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698