Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(434)

Side by Side Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 class PlatformTouchEvent; 61 class PlatformTouchEvent;
62 class WebDevToolsAgentClient; 62 class WebDevToolsAgentClient;
63 class WebFrameWidgetImpl; 63 class WebFrameWidgetImpl;
64 class WebInputEvent; 64 class WebInputEvent;
65 class WebLayerTreeView; 65 class WebLayerTreeView;
66 class WebLocalFrameImpl; 66 class WebLocalFrameImpl;
67 class WebString; 67 class WebString;
68 class WebViewImpl; 68 class WebViewImpl;
69 69
70 class WebDevToolsAgentImpl final 70 class WebDevToolsAgentImpl final
71 : public NoBaseWillBeGarbageCollectedFinalized<WebDevToolsAgentImpl> 71 : public GarbageCollectedFinalized<WebDevToolsAgentImpl>
72 , public WebDevToolsAgent 72 , public WebDevToolsAgent
73 , public InspectorEmulationAgent::Client 73 , public InspectorEmulationAgent::Client
74 , public InspectorTracingAgent::Client 74 , public InspectorTracingAgent::Client
75 , public InspectorPageAgent::Client 75 , public InspectorPageAgent::Client
76 , public InspectorRuntimeAgent::Client 76 , public InspectorRuntimeAgent::Client
77 , public InspectorFrontendChannel 77 , public InspectorFrontendChannel
78 , private WebThread::TaskObserver { 78 , private WebThread::TaskObserver {
79 public: 79 public:
80 static PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl *, WebDevToolsAgentClient*); 80 static RawPtr<WebDevToolsAgentImpl> create(WebLocalFrameImpl*, WebDevToolsAg entClient*);
81 ~WebDevToolsAgentImpl() override; 81 ~WebDevToolsAgentImpl() override;
82 void dispose(); 82 void dispose();
83 DECLARE_VIRTUAL_TRACE(); 83 DECLARE_VIRTUAL_TRACE();
84 84
85 void willBeDestroyed(); 85 void willBeDestroyed();
86 WebDevToolsAgentClient* client() { return m_client; } 86 WebDevToolsAgentClient* client() { return m_client; }
87 InspectorOverlay* overlay() const { return m_overlay.get(); } 87 InspectorOverlay* overlay() const { return m_overlay.get(); }
88 void flushPendingProtocolNotifications(); 88 void flushPendingProtocolNotifications();
89 void dispatchMessageFromFrontend(int sessionId, const String& message); 89 void dispatchMessageFromFrontend(int sessionId, const String& message);
90 void registerAgent(PassOwnPtrWillBeRawPtr<InspectorAgent>); 90 void registerAgent(RawPtr<InspectorAgent>);
91 static void webViewImplClosed(WebViewImpl*); 91 static void webViewImplClosed(WebViewImpl*);
92 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*); 92 static void webFrameWidgetImplClosed(WebFrameWidgetImpl*);
93 93
94 // Instrumentation from web/ layer. 94 // Instrumentation from web/ layer.
95 void didCommitLoadForLocalFrame(LocalFrame*); 95 void didCommitLoadForLocalFrame(LocalFrame*);
96 bool screencastEnabled(); 96 bool screencastEnabled();
97 void willAddPageOverlay(const GraphicsLayer*); 97 void willAddPageOverlay(const GraphicsLayer*);
98 void didRemovePageOverlay(const GraphicsLayer*); 98 void didRemovePageOverlay(const GraphicsLayer*);
99 void layerTreeViewChanged(WebLayerTreeView*); 99 void layerTreeViewChanged(WebLayerTreeView*);
100 100
101 // WebDevToolsAgent implementation. 101 // WebDevToolsAgent implementation.
102 void attach(const WebString& hostId, int sessionId) override; 102 void attach(const WebString& hostId, int sessionId) override;
103 void reattach(const WebString& hostId, int sessionId, const WebString& saved State) override; 103 void reattach(const WebString& hostId, int sessionId, const WebString& saved State) override;
104 void detach() override; 104 void detach() override;
105 void continueProgram() override; 105 void continueProgram() override;
106 void dispatchOnInspectorBackend(int sessionId, const WebString& message) ove rride; 106 void dispatchOnInspectorBackend(int sessionId, const WebString& message) ove rride;
107 void inspectElementAt(const WebPoint&) override; 107 void inspectElementAt(const WebPoint&) override;
108 void failedToRequestDevTools() override; 108 void failedToRequestDevTools() override;
109 void evaluateInWebInspector(long callId, const WebString& script) override; 109 void evaluateInWebInspector(long callId, const WebString& script) override;
110 WebString evaluateInWebInspectorOverlay(const WebString& script) override; 110 WebString evaluateInWebInspectorOverlay(const WebString& script) override;
111 111
112 private: 112 private:
113 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, PassOwnPtr WillBeRawPtr<InspectorOverlay>); 113 WebDevToolsAgentImpl(WebLocalFrameImpl*, WebDevToolsAgentClient*, RawPtr<Ins pectorOverlay>);
114 114
115 // InspectorTracingAgent::Client implementation. 115 // InspectorTracingAgent::Client implementation.
116 void enableTracing(const WTF::String& categoryFilter) override; 116 void enableTracing(const WTF::String& categoryFilter) override;
117 void disableTracing() override; 117 void disableTracing() override;
118 118
119 // InspectorEmulationAgent::Client implementation. 119 // InspectorEmulationAgent::Client implementation.
120 void setCPUThrottlingRate(double) override; 120 void setCPUThrottlingRate(double) override;
121 121
122 // InspectorRuntimeAgent::Client implementation. 122 // InspectorRuntimeAgent::Client implementation.
123 void resumeStartup() override; 123 void resumeStartup() override;
124 124
125 // InspectorPageAgent::Client implementation. 125 // InspectorPageAgent::Client implementation.
126 void pageLayoutInvalidated() override; 126 void pageLayoutInvalidated() override;
127 void setPausedInDebuggerMessage(const String*) override; 127 void setPausedInDebuggerMessage(const String*) override;
128 void waitForCreateWindow(LocalFrame*) override; 128 void waitForCreateWindow(LocalFrame*) override;
129 129
130 // InspectorFrontendChannel implementation. 130 // InspectorFrontendChannel implementation.
131 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override; 131 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<JSONObject> message) override;
132 void sendProtocolNotification(PassRefPtr<JSONObject> message) override; 132 void sendProtocolNotification(PassRefPtr<JSONObject> message) override;
133 void flush() override; 133 void flush() override;
134 134
135 // WebThread::TaskObserver implementation. 135 // WebThread::TaskObserver implementation.
136 void willProcessTask() override; 136 void willProcessTask() override;
137 void didProcessTask() override; 137 void didProcessTask() override;
138 138
139 void initializeDeferredAgents(); 139 void initializeDeferredAgents();
140 140
141 WebDevToolsAgentClient* m_client; 141 WebDevToolsAgentClient* m_client;
142 RawPtrWillBeMember<WebLocalFrameImpl> m_webLocalFrameImpl; 142 Member<WebLocalFrameImpl> m_webLocalFrameImpl;
143 bool m_attached; 143 bool m_attached;
144 #if ENABLE(ASSERT) 144 #if ENABLE(ASSERT)
145 bool m_hasBeenDisposed; 145 bool m_hasBeenDisposed;
146 #endif 146 #endif
147 147
148 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; 148 Member<InstrumentingAgents> m_instrumentingAgents;
149 OwnPtr<InjectedScriptManager> m_injectedScriptManager; 149 OwnPtr<InjectedScriptManager> m_injectedScriptManager;
150 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; 150 Member<InspectorResourceContentLoader> m_resourceContentLoader;
151 OwnPtrWillBeMember<InspectorOverlay> m_overlay; 151 Member<InspectorOverlay> m_overlay;
152 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; 152 Member<InspectedFrames> m_inspectedFrames;
153 153
154 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; 154 Member<InspectorInspectorAgent> m_inspectorAgent;
155 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 155 Member<InspectorDOMAgent> m_domAgent;
156 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 156 Member<InspectorPageAgent> m_pageAgent;
157 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; 157 Member<InspectorResourceAgent> m_resourceAgent;
158 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; 158 Member<InspectorLayerTreeAgent> m_layerTreeAgent;
159 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; 159 Member<InspectorTracingAgent> m_tracingAgent;
160 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; 160 Member<PageRuntimeAgent> m_pageRuntimeAgent;
161 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; 161 Member<PageConsoleAgent> m_pageConsoleAgent;
162 162
163 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher; 163 RefPtr<InspectorBackendDispatcher> m_inspectorBackendDispatcher;
164 OwnPtr<InspectorFrontend> m_inspectorFrontend; 164 OwnPtr<InspectorFrontend> m_inspectorFrontend;
165 InspectorAgentRegistry m_agents; 165 InspectorAgentRegistry m_agents;
166 bool m_deferredAgentsInitialized; 166 bool m_deferredAgentsInitialized;
167 167
168 typedef Vector<std::pair<int, RefPtr<JSONObject>>> NotificationQueue; 168 typedef Vector<std::pair<int, RefPtr<JSONObject>>> NotificationQueue;
169 NotificationQueue m_notificationQueue; 169 NotificationQueue m_notificationQueue;
170 int m_sessionId; 170 int m_sessionId;
171 String m_stateCookie; 171 String m_stateCookie;
172 bool m_stateMuted; 172 bool m_stateMuted;
173 173
174 friend class DebuggerTask; 174 friend class DebuggerTask;
175 }; 175 };
176 176
177 } // namespace blink 177 } // namespace blink
178 178
179 #endif 179 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698