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

Side by Side Diff: third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.h

Issue 2649323005: Cleanly detach XHR and other pending loader clients from Inspector. (Closed)
Patch Set: rebalance XHR disposal steps Created 3 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 const AtomicString& method, 145 const AtomicString& method,
146 const String& url); 146 const String& url);
147 147
148 void willSendEventSourceRequest(ThreadableLoaderClient*); 148 void willSendEventSourceRequest(ThreadableLoaderClient*);
149 void willDispatchEventSourceEvent(ThreadableLoaderClient*, 149 void willDispatchEventSourceEvent(ThreadableLoaderClient*,
150 const AtomicString& eventName, 150 const AtomicString& eventName,
151 const AtomicString& eventId, 151 const AtomicString& eventId,
152 const String& data); 152 const String& data);
153 void didFinishEventSourceRequest(ThreadableLoaderClient*); 153 void didFinishEventSourceRequest(ThreadableLoaderClient*);
154 154
155 // Detach and remove all references to the given client.
156 void detachClientRequest(ThreadableLoaderClient*);
157
155 void willDestroyResource(Resource*); 158 void willDestroyResource(Resource*);
156 159
157 void applyUserAgentOverride(String* userAgent); 160 void applyUserAgentOverride(String* userAgent);
158 161
159 // FIXME: InspectorNetworkAgent should not be aware of style recalculation. 162 // FIXME: InspectorNetworkAgent should not be aware of style recalculation.
160 void willRecalculateStyle(Document*); 163 void willRecalculateStyle(Document*);
161 void didRecalculateStyle(); 164 void didRecalculateStyle();
162 void didScheduleStyleRecalculation(Document*); 165 void didScheduleStyleRecalculation(Document*);
163 166
164 void frameScheduledNavigation(LocalFrame*, double); 167 void frameScheduledNavigation(LocalFrame*, double);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 bool m_isRecalculatingStyle; 281 bool m_isRecalculatingStyle;
279 282
280 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs; 283 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRs;
281 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted; 284 HeapHashSet<Member<XMLHttpRequest>> m_replayXHRsToBeDeleted;
282 TaskRunnerTimer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer; 285 TaskRunnerTimer<InspectorNetworkAgent> m_removeFinishedReplayXHRTimer;
283 }; 286 };
284 287
285 } // namespace blink 288 } // namespace blink
286 289
287 #endif // !defined(InspectorNetworkAgent_h) 290 #endif // !defined(InspectorNetworkAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698