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 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class InjectedScriptManager; | 43 class InjectedScriptManager; |
44 class InspectorBackendDispatcher; | 44 class InspectorBackendDispatcher; |
45 class InspectorFrontend; | 45 class InspectorFrontend; |
46 class InspectorFrontendChannel; | 46 class InspectorFrontendChannel; |
47 class InspectorState; | 47 class InspectorState; |
48 class InspectorStateClient; | 48 class InspectorStateClient; |
49 class InstrumentingAgents; | 49 class InstrumentingAgents; |
| 50 class WorkerDebuggerAgent; |
50 class WorkerGlobalScope; | 51 class WorkerGlobalScope; |
51 class WorkerScriptDebugServer; | 52 class WorkerScriptDebugServer; |
52 | 53 |
53 class WorkerInspectorController { | 54 class WorkerInspectorController : public RefCountedWillBeGarbageCollectedFinaliz
ed<WorkerInspectorController> { |
54 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); | 55 WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
55 WTF_MAKE_FAST_ALLOCATED; | 56 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
56 public: | 57 public: |
57 WorkerInspectorController(WorkerGlobalScope*); | 58 explicit WorkerInspectorController(WorkerGlobalScope*); |
58 ~WorkerInspectorController(); | 59 ~WorkerInspectorController(); |
| 60 void trace(Visitor*); |
59 | 61 |
60 void connectFrontend(); | 62 void connectFrontend(); |
61 void disconnectFrontend(); | 63 void disconnectFrontend(); |
62 void restoreInspectorStateFromCookie(const String& inspectorCookie); | 64 void restoreInspectorStateFromCookie(const String& inspectorCookie); |
63 void dispatchMessageFromFrontend(const String&); | 65 void dispatchMessageFromFrontend(const String&); |
64 void resume(); | 66 void resume(); |
| 67 void dispose(); |
| 68 void interruptAndDispatchInspectorCommands(); |
65 | 69 |
66 private: | 70 private: |
67 friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobal
Scope*); | 71 friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobal
Scope*); |
68 | 72 |
69 WorkerGlobalScope* m_workerGlobalScope; | 73 RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
70 OwnPtr<InspectorStateClient> m_stateClient; | 74 OwnPtr<InspectorStateClient> m_stateClient; |
71 OwnPtr<InspectorCompositeState> m_state; | 75 OwnPtr<InspectorCompositeState> m_state; |
72 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 76 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
73 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 77 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
74 OwnPtr<WorkerScriptDebugServer> m_debugServer; | 78 OwnPtr<WorkerScriptDebugServer> m_debugServer; |
75 InspectorAgentRegistry m_agents; | 79 InspectorAgentRegistry m_agents; |
76 OwnPtr<InspectorFrontendChannel> m_frontendChannel; | 80 OwnPtr<InspectorFrontendChannel> m_frontendChannel; |
77 OwnPtr<InspectorFrontend> m_frontend; | 81 OwnPtr<InspectorFrontend> m_frontend; |
78 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; | 82 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; |
| 83 RawPtrWillBeMember<WorkerDebuggerAgent> m_workerDebuggerAgent; |
79 }; | 84 }; |
80 | 85 |
81 } | 86 } |
82 | 87 |
83 #endif // !defined(WorkerInspectorController_h) | 88 #endif // !defined(WorkerInspectorController_h) |
OLD | NEW |