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 NoBaseWillBeGarbageCollectedFinalized<W orkerInspectorController> { |
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 discard(); | |
65 | 68 |
66 private: | 69 private: |
67 friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobal Scope*); | 70 friend InstrumentingAgents* instrumentationForWorkerGlobalScope(WorkerGlobal Scope*); |
68 | 71 |
72 InspectorAgentRegistry& agents() { return *m_agents; } | |
73 | |
69 WorkerGlobalScope* m_workerGlobalScope; | 74 WorkerGlobalScope* m_workerGlobalScope; |
haraken
2014/06/12 08:40:25
WorkerGlobalScope is on-heap, so you can use a Mem
keishi
2014/06/13 03:37:34
Done.
| |
70 OwnPtr<InspectorStateClient> m_stateClient; | 75 OwnPtr<InspectorStateClient> m_stateClient; |
71 OwnPtr<InspectorCompositeState> m_state; | 76 OwnPtr<InspectorCompositeState> m_state; |
72 RefPtr<InstrumentingAgents> m_instrumentingAgents; | 77 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
73 OwnPtr<InjectedScriptManager> m_injectedScriptManager; | 78 OwnPtr<InjectedScriptManager> m_injectedScriptManager; |
74 OwnPtr<WorkerScriptDebugServer> m_debugServer; | 79 OwnPtr<WorkerScriptDebugServer> m_debugServer; |
75 InspectorAgentRegistry m_agents; | 80 OwnPtrWillBeMember<InspectorAgentRegistry> m_agents; |
76 OwnPtr<InspectorFrontendChannel> m_frontendChannel; | 81 OwnPtr<InspectorFrontendChannel> m_frontendChannel; |
77 OwnPtr<InspectorFrontend> m_frontend; | 82 OwnPtr<InspectorFrontend> m_frontend; |
78 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; | 83 RefPtr<InspectorBackendDispatcher> m_backendDispatcher; |
84 RawPtrWillBeMember<WorkerDebuggerAgent> m_debuggerAgent; | |
79 }; | 85 }; |
80 | 86 |
81 } | 87 } |
82 | 88 |
83 #endif // !defined(WorkerInspectorController_h) | 89 #endif // !defined(WorkerInspectorController_h) |
OLD | NEW |