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 23 matching lines...) Expand all Loading... |
34 #include "core/inspector/InspectorDebuggerAgent.h" | 34 #include "core/inspector/InspectorDebuggerAgent.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class WorkerGlobalScope; | 38 class WorkerGlobalScope; |
39 class WorkerThreadDebugger; | 39 class WorkerThreadDebugger; |
40 | 40 |
41 class WorkerDebuggerAgent final : public InspectorDebuggerAgent { | 41 class WorkerDebuggerAgent final : public InspectorDebuggerAgent { |
42 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); | 42 WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); |
43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); | 43 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(WorkerDebuggerAgent); |
44 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkerDebuggerAgent); | |
45 public: | 44 public: |
46 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg
er*, WorkerGlobalScope*, InjectedScriptManager*); | 45 static PassOwnPtrWillBeRawPtr<WorkerDebuggerAgent> create(WorkerThreadDebugg
er*, WorkerGlobalScope*, InjectedScriptManager*); |
47 ~WorkerDebuggerAgent() override; | 46 ~WorkerDebuggerAgent() override; |
48 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
49 | 48 |
50 private: | 49 private: |
51 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip
tManager*); | 50 WorkerDebuggerAgent(WorkerThreadDebugger*, WorkerGlobalScope*, InjectedScrip
tManager*); |
52 | 51 |
53 // V8DebuggerAgent::Client implemntation. | 52 // V8DebuggerAgent::Client implemntation. |
54 InjectedScript defaultInjectedScript() override; | 53 InjectedScript defaultInjectedScript() override; |
55 void muteConsole() override; | 54 void muteConsole() override; |
56 void unmuteConsole() override; | 55 void unmuteConsole() override; |
57 | 56 |
58 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; | 57 RawPtrWillBeMember<WorkerGlobalScope> m_inspectedWorkerGlobalScope; |
59 }; | 58 }; |
60 | 59 |
61 } // namespace blink | 60 } // namespace blink |
62 | 61 |
63 #endif // !defined(WorkerDebuggerAgent_h) | 62 #endif // !defined(WorkerDebuggerAgent_h) |
OLD | NEW |