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

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

Issue 1746393003: [DevTools] Postpone more agents instantiation until attached. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 118
119 // InspectorTracingAgent::Client implementation. 119 // InspectorTracingAgent::Client implementation.
120 void enableTracing(const WTF::String& categoryFilter) override; 120 void enableTracing(const WTF::String& categoryFilter) override;
121 void disableTracing() override; 121 void disableTracing() override;
122 122
123 // InspectorEmulationAgent::Client implementation. 123 // InspectorEmulationAgent::Client implementation.
124 void setCPUThrottlingRate(double) override; 124 void setCPUThrottlingRate(double) override;
125 125
126 // InspectorRuntimeAgent::Client implementation. 126 // InspectorRuntimeAgent::Client implementation.
127 void resumeStartup() override; 127 void resumeStartup() override;
128 bool didCommitLoadFired() override;
128 129
129 // InspectorPageAgent::Client implementation. 130 // InspectorPageAgent::Client implementation.
130 void pageLayoutInvalidated(bool resized) override; 131 void pageLayoutInvalidated(bool resized) override;
131 void setPausedInDebuggerMessage(const String&) override; 132 void setPausedInDebuggerMessage(const String&) override;
132 void waitForCreateWindow(LocalFrame*) override; 133 void waitForCreateWindow(LocalFrame*) override;
133 134
134 // protocol::FrontendChannel implementation. 135 // protocol::FrontendChannel implementation.
135 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<protocol::Di ctionaryValue> message) override; 136 void sendProtocolResponse(int sessionId, int callId, PassRefPtr<protocol::Di ctionaryValue> message) override;
136 void sendProtocolNotification(PassRefPtr<protocol::DictionaryValue> message) override; 137 void sendProtocolNotification(PassRefPtr<protocol::DictionaryValue> message) override;
137 void flush() override; 138 void flush() override;
(...skipping 15 matching lines...) Expand all
153 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader; 154 OwnPtrWillBeMember<InspectorResourceContentLoader> m_resourceContentLoader;
154 OwnPtrWillBeMember<InspectorOverlay> m_overlay; 155 OwnPtrWillBeMember<InspectorOverlay> m_overlay;
155 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames; 156 OwnPtrWillBeMember<InspectedFrames> m_inspectedFrames;
156 157
157 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent; 158 RawPtrWillBeMember<InspectorInspectorAgent> m_inspectorAgent;
158 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent; 159 RawPtrWillBeMember<InspectorDOMAgent> m_domAgent;
159 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent; 160 RawPtrWillBeMember<InspectorPageAgent> m_pageAgent;
160 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent; 161 RawPtrWillBeMember<InspectorResourceAgent> m_resourceAgent;
161 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent; 162 RawPtrWillBeMember<InspectorLayerTreeAgent> m_layerTreeAgent;
162 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent; 163 RawPtrWillBeMember<InspectorTracingAgent> m_tracingAgent;
164 RawPtrWillBeMember<InspectorWorkerAgent> m_workerAgent;
163 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent; 165 RawPtrWillBeMember<PageRuntimeAgent> m_pageRuntimeAgent;
164 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent; 166 RawPtrWillBeMember<PageConsoleAgent> m_pageConsoleAgent;
165 167
168 int m_layerTreeId;
169 bool m_inspectedFrameDidCommitLoad;
170
166 RefPtr<protocol::Dispatcher> m_inspectorBackendDispatcher; 171 RefPtr<protocol::Dispatcher> m_inspectorBackendDispatcher;
167 OwnPtr<protocol::Frontend> m_inspectorFrontend; 172 OwnPtr<protocol::Frontend> m_inspectorFrontend;
168 InspectorAgentRegistry m_agents; 173 InspectorAgentRegistry m_agents;
169 bool m_deferredAgentsInitialized; 174 bool m_deferredAgentsInitialized;
170 175
171 typedef Vector<std::pair<int, RefPtr<protocol::Value>>> NotificationQueue; 176 typedef Vector<std::pair<int, RefPtr<protocol::Value>>> NotificationQueue;
172 NotificationQueue m_notificationQueue; 177 NotificationQueue m_notificationQueue;
173 int m_sessionId; 178 int m_sessionId;
174 String m_stateCookie; 179 String m_stateCookie;
175 bool m_stateMuted; 180 bool m_stateMuted;
176 181
177 friend class DebuggerTask; 182 friend class DebuggerTask;
178 }; 183 };
179 184
180 } // namespace blink 185 } // namespace blink
181 186
182 #endif 187 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698