OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 | 65 |
66 class WebDevToolsAgentImpl final | 66 class WebDevToolsAgentImpl final |
67 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> | 67 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> |
68 , public WebDevToolsAgent | 68 , public WebDevToolsAgent |
69 , public InspectorStateClient | 69 , public InspectorStateClient |
70 , public InspectorTracingAgent::Client | 70 , public InspectorTracingAgent::Client |
71 , public PageRuntimeAgent::Client | 71 , public PageRuntimeAgent::Client |
72 , public InspectorFrontendChannel | 72 , public InspectorFrontendChannel |
73 , private WebThread::TaskObserver { | 73 , private WebThread::TaskObserver { |
74 public: | 74 public: |
75 WebDevToolsAgentImpl(WebViewImpl*, WebDevToolsAgentClient*, InspectorOverlay
*, PassOwnPtrWillBeRawPtr<InspectorInputAgent::Client>); | 75 WebDevToolsAgentImpl(WebViewImpl*, WebDevToolsAgentClient*, InspectorOverlay
*, PassOwnPtr<InspectorInputAgent::Client>); |
76 ~WebDevToolsAgentImpl() override; | 76 ~WebDevToolsAgentImpl() override; |
77 void dispose(); | 77 void dispose(); |
78 DECLARE_VIRTUAL_TRACE(); | 78 DECLARE_VIRTUAL_TRACE(); |
79 | 79 |
80 void willBeDestroyed(); | 80 void willBeDestroyed(); |
81 WebDevToolsAgentClient* client() { return m_client; } | 81 WebDevToolsAgentClient* client() { return m_client; } |
82 bool handleInputEvent(Page*, const WebInputEvent&); | 82 bool handleInputEvent(Page*, const WebInputEvent&); |
83 void flushPendingProtocolNotifications(); | 83 void flushPendingProtocolNotifications(); |
84 void dispatchMessageFromFrontend(const String& message); | 84 void dispatchMessageFromFrontend(const String& message); |
85 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); | 85 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 WebViewImpl* m_webViewImpl; | 131 WebViewImpl* m_webViewImpl; |
132 bool m_attached; | 132 bool m_attached; |
133 #if ENABLE(ASSERT) | 133 #if ENABLE(ASSERT) |
134 bool m_hasBeenDisposed; | 134 bool m_hasBeenDisposed; |
135 #endif | 135 #endif |
136 | 136 |
137 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 137 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
138 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; | 138 OwnPtrWillBeMember<InjectedScriptManager> m_injectedScriptManager; |
139 OwnPtrWillBeMember<InspectorCompositeState> m_state; | 139 OwnPtrWillBeMember<InspectorCompositeState> m_state; |
140 RawPtrWillBeMember<InspectorOverlay> m_overlay; | 140 RawPtrWillBeMember<InspectorOverlay> m_overlay; |
141 OwnPtrWillBeMember<InspectorInputAgent::Client> m_inputClient; | 141 OwnPtr<InspectorInputAgent::Client> m_inputClient; |
142 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; | 142 OwnPtrWillBeMember<AsyncCallTracker> m_asyncCallTracker; |
143 | 143 |
144 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; | 144 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; |
145 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; | 145 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; |
146 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; | 146 RawPtrWillBeMember<InspectorCSSAgent> m_cssAgent; |
147 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; | 147 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; |
148 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; | 148 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; |
149 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; | 149 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; |
150 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; | 150 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; |
151 | 151 |
152 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; | 152 RefPtrWillBeMember<InspectorBackendDispatcher> m_inspectorBackendDispatcher; |
153 OwnPtr<InspectorFrontend> m_inspectorFrontend; | 153 OwnPtr<InspectorFrontend> m_inspectorFrontend; |
154 InspectorAgentRegistry m_agents; | 154 InspectorAgentRegistry m_agents; |
155 bool m_deferredAgentsInitialized; | 155 bool m_deferredAgentsInitialized; |
156 | 156 |
157 typedef Vector<RefPtr<JSONObject> > NotificationQueue; | 157 typedef Vector<RefPtr<JSONObject> > NotificationQueue; |
158 NotificationQueue m_notificationQueue; | 158 NotificationQueue m_notificationQueue; |
159 String m_stateCookie; | 159 String m_stateCookie; |
160 | 160 |
161 friend class DebuggerTask; | 161 friend class DebuggerTask; |
162 }; | 162 }; |
163 | 163 |
164 } // namespace blink | 164 } // namespace blink |
165 | 165 |
166 #endif | 166 #endif |
OLD | NEW |