Changeset 209169 in webkit
- Timestamp:
- Nov 30, 2016 7:16:13 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209168 r209169 1 2016-11-30 Joseph Pecoraro <pecoraro@apple.com> 2 3 Web Inspector: Remove unused parameter of InspectorInstrumentation::didFinishXHRLoading 4 https://bugs.webkit.org/show_bug.cgi?id=165233 5 6 Reviewed by Brian Burg. 7 8 * inspector/InspectorInstrumentation.cpp: 9 (WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl): 10 * inspector/InspectorInstrumentation.h: 11 (WebCore::InspectorInstrumentation::didFinishXHRLoading): 12 * inspector/InspectorNetworkAgent.cpp: 13 (WebCore::InspectorNetworkAgent::didFinishXHRLoading): 14 * inspector/InspectorNetworkAgent.h: 15 * xml/XMLHttpRequest.cpp: 16 (WebCore::XMLHttpRequest::didFinishLoading): 17 Remove unused ThreadableLoaderClient parameter. 18 1 19 2016-11-30 Brady Eidson <beidson@apple.com> 2 20 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r209062 r209169 660 660 } 661 661 662 void InspectorInstrumentation::didFinishXHRLoadingImpl(InstrumentingAgents& instrumentingAgents, ThreadableLoaderClient* client,unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber)662 void InspectorInstrumentation::didFinishXHRLoadingImpl(InstrumentingAgents& instrumentingAgents, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber) 663 663 { 664 664 if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent()) … … 666 666 if (InspectorNetworkAgent* networkAgent = instrumentingAgents.inspectorNetworkAgent()) { 667 667 if (decodedText) 668 networkAgent->didFinishXHRLoading( client,identifier, *decodedText);668 networkAgent->didFinishXHRLoading(identifier, *decodedText); 669 669 } 670 670 } -
trunk/Source/WebCore/inspector/InspectorInstrumentation.h
r208985 r209169 79 79 class SecurityOrigin; 80 80 class ShadowRoot; 81 class ThreadableLoaderClient;82 81 class URL; 83 82 class WebKitNamedFlow; … … 164 163 static void didFinishLoading(Frame*, DocumentLoader*, unsigned long identifier, double finishTime); 165 164 static void didFailLoading(Frame*, DocumentLoader*, unsigned long identifier, const ResourceError&); 166 static void didFinishXHRLoading(ScriptExecutionContext*, ThreadableLoaderClient*,unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber);165 static void didFinishXHRLoading(ScriptExecutionContext*, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber); 167 166 static void didReceiveXHRResponse(ScriptExecutionContext*, unsigned long identifier); 168 167 static void willLoadXHRSynchronously(ScriptExecutionContext*); … … 292 291 293 292 static void mouseDidMoveOverElementImpl(InstrumentingAgents&, const HitTestResult&, unsigned modifierFlags); 293 static bool handleMousePressImpl(InstrumentingAgents&); 294 294 static bool handleTouchEventImpl(InstrumentingAgents&, Node&); 295 static bool handleMousePressImpl(InstrumentingAgents&);296 295 static bool forcePseudoStateImpl(InstrumentingAgents&, const Element&, CSSSelector::PseudoClassType); 297 296 … … 338 337 static void didFinishLoadingImpl(InstrumentingAgents&, unsigned long identifier, DocumentLoader*, double finishTime); 339 338 static void didFailLoadingImpl(InstrumentingAgents&, unsigned long identifier, DocumentLoader*, const ResourceError&); 340 static void willLoadXHRImpl(InstrumentingAgents&, ThreadableLoaderClient*, const String&, const URL&, bool, RefPtr<FormData>&&, const HTTPHeaderMap&, bool); 341 static void didFailXHRLoadingImpl(InstrumentingAgents&, ThreadableLoaderClient*); 342 static void didFinishXHRLoadingImpl(InstrumentingAgents&, ThreadableLoaderClient*, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber); 339 static void didFinishXHRLoadingImpl(InstrumentingAgents&, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber); 343 340 static void didReceiveXHRResponseImpl(InstrumentingAgents&, unsigned long identifier); 344 341 static void willLoadXHRSynchronouslyImpl(InstrumentingAgents&); … … 915 912 } 916 913 917 inline void InspectorInstrumentation::didFinishXHRLoading(ScriptExecutionContext* context, ThreadableLoaderClient* client,unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber)918 { 919 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext(context)) 920 didFinishXHRLoadingImpl(*instrumentingAgents, client,identifier, decodedText, url, sendURL, sendLineNumber, sendColumnNumber);914 inline void InspectorInstrumentation::didFinishXHRLoading(ScriptExecutionContext* context, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber) 915 { 916 if (InstrumentingAgents* instrumentingAgents = instrumentingAgentsForContext(context)) 917 didFinishXHRLoadingImpl(*instrumentingAgents, identifier, decodedText, url, sendURL, sendLineNumber, sendColumnNumber); 921 918 } 922 919 -
trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp
r208520 r209169 451 451 } 452 452 453 void InspectorNetworkAgent::didFinishXHRLoading( ThreadableLoaderClient*,unsigned long identifier, const String& decodedText)453 void InspectorNetworkAgent::didFinishXHRLoading(unsigned long identifier, const String& decodedText) 454 454 { 455 455 m_resourcesData->setResourceContent(IdentifiersFactory::requestId(identifier), decodedText); -
trunk/Source/WebCore/inspector/InspectorNetworkAgent.h
r208742 r209169 55 55 class ResourceRequest; 56 56 class ResourceResponse; 57 class ThreadableLoaderClient;58 57 class URL; 59 58 … … 83 82 void didFailLoading(unsigned long identifier, DocumentLoader&, const ResourceError&); 84 83 void didLoadResourceFromMemoryCache(DocumentLoader&, CachedResource&); 85 void didFinishXHRLoading( ThreadableLoaderClient*,unsigned long identifier, const String& decodedText);84 void didFinishXHRLoading(unsigned long identifier, const String& decodedText); 86 85 void didReceiveXHRResponse(unsigned long identifier); 87 86 void willLoadXHRSynchronously(); -
trunk/Source/WebCore/xml/XMLHttpRequest.cpp
r208985 r209169 984 984 if (!m_binaryResponseBuilder) 985 985 decodedText = m_responseBuilder.toStringPreserveCapacity(); 986 InspectorInstrumentation::didFinishXHRLoading(scriptExecutionContext(), this,identifier, decodedText, m_url, m_lastSendURL, m_lastSendLineNumber, m_lastSendColumnNumber);986 InspectorInstrumentation::didFinishXHRLoading(scriptExecutionContext(), identifier, decodedText, m_url, m_lastSendURL, m_lastSendLineNumber, m_lastSendColumnNumber); 987 987 988 988 bool hadLoader = m_loader;
Note: See TracChangeset
for help on using the changeset viewer.