Chromium Code Reviews| Index: Source/core/inspector/WorkerInspectorController.h |
| diff --git a/Source/core/inspector/WorkerInspectorController.h b/Source/core/inspector/WorkerInspectorController.h |
| index 3e06e99ef7e1b2ae63dcb2592d1fe66b1db2b20f..ea41949f4e94f4037bd91d7fe7ee503ba4078485 100644 |
| --- a/Source/core/inspector/WorkerInspectorController.h |
| +++ b/Source/core/inspector/WorkerInspectorController.h |
| @@ -47,35 +47,40 @@ class InspectorFrontendChannel; |
| class InspectorState; |
| class InspectorStateClient; |
| class InstrumentingAgents; |
| +class WorkerDebuggerAgent; |
| class WorkerGlobalScope; |
| class WorkerScriptDebugServer; |
| -class WorkerInspectorController { |
| +class WorkerInspectorController : public NoBaseWillBeGarbageCollectedFinalized<WorkerInspectorController> { |
| WTF_MAKE_NONCOPYABLE(WorkerInspectorController); |
| - WTF_MAKE_FAST_ALLOCATED; |
| + WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| public: |
| - WorkerInspectorController(WorkerGlobalScope*); |
| + explicit WorkerInspectorController(WorkerGlobalScope*); |
| ~WorkerInspectorController(); |
| + void trace(Visitor*); |
| void connectFrontend(); |
| void disconnectFrontend(); |
| void restoreInspectorStateFromCookie(const String& inspectorCookie); |
| void dispatchMessageFromFrontend(const String&); |
| void resume(); |
| + void dispose(); |
| + WorkerDebuggerAgent* workerDebuggerAgent() { return m_workerDebuggerAgent.get(); } |
|
yurys
2014/06/25 06:11:23
Let's not expose whole agent but instead have only
keishi
2014/06/26 01:44:26
Done.
|
| private: |
| friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobalScope*); |
| - WorkerGlobalScope* m_workerGlobalScope; |
| + RawPtrWillBeMember<WorkerGlobalScope> m_workerGlobalScope; |
| OwnPtr<InspectorStateClient> m_stateClient; |
| OwnPtr<InspectorCompositeState> m_state; |
| - RefPtr<InstrumentingAgents> m_instrumentingAgents; |
| + RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
| OwnPtr<WorkerScriptDebugServer> m_debugServer; |
| InspectorAgentRegistry m_agents; |
| OwnPtr<InspectorFrontendChannel> m_frontendChannel; |
| OwnPtr<InspectorFrontend> m_frontend; |
| RefPtr<InspectorBackendDispatcher> m_backendDispatcher; |
| + RawPtrWillBeMember<WorkerDebuggerAgent> m_workerDebuggerAgent; |
| }; |
| } |