Changeset 209169 in webkit


Ignore:
Timestamp:
Nov 30, 2016 7:16:13 PM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Web Inspector: Remove unused parameter of InspectorInstrumentation::didFinishXHRLoading
https://bugs.webkit.org/show_bug.cgi?id=165233

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2016-11-30
Reviewed by Brian Burg.

  • inspector/InspectorInstrumentation.cpp:

(WebCore::InspectorInstrumentation::didFinishXHRLoadingImpl):

  • inspector/InspectorInstrumentation.h:

(WebCore::InspectorInstrumentation::didFinishXHRLoading):

  • inspector/InspectorNetworkAgent.cpp:

(WebCore::InspectorNetworkAgent::didFinishXHRLoading):

  • inspector/InspectorNetworkAgent.h:
  • xml/XMLHttpRequest.cpp:

(WebCore::XMLHttpRequest::didFinishLoading):
Remove unused ThreadableLoaderClient parameter.

Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r209168 r209169  
     12016-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
    1192016-11-30  Brady Eidson  <beidson@apple.com>
    220
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp

    r209062 r209169  
    660660}
    661661
    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)
     662void InspectorInstrumentation::didFinishXHRLoadingImpl(InstrumentingAgents& instrumentingAgents, unsigned long identifier, std::optional<String> decodedText, const String& url, const String& sendURL, unsigned sendLineNumber, unsigned sendColumnNumber)
    663663{
    664664    if (WebConsoleAgent* consoleAgent = instrumentingAgents.webConsoleAgent())
     
    666666    if (InspectorNetworkAgent* networkAgent = instrumentingAgents.inspectorNetworkAgent()) {
    667667        if (decodedText)
    668             networkAgent->didFinishXHRLoading(client, identifier, *decodedText);
     668            networkAgent->didFinishXHRLoading(identifier, *decodedText);
    669669    }
    670670}
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.h

    r208985 r209169  
    7979class SecurityOrigin;
    8080class ShadowRoot;
    81 class ThreadableLoaderClient;
    8281class URL;
    8382class WebKitNamedFlow;
     
    164163    static void didFinishLoading(Frame*, DocumentLoader*, unsigned long identifier, double finishTime);
    165164    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);
    167166    static void didReceiveXHRResponse(ScriptExecutionContext*, unsigned long identifier);
    168167    static void willLoadXHRSynchronously(ScriptExecutionContext*);
     
    292291
    293292    static void mouseDidMoveOverElementImpl(InstrumentingAgents&, const HitTestResult&, unsigned modifierFlags);
     293    static bool handleMousePressImpl(InstrumentingAgents&);
    294294    static bool handleTouchEventImpl(InstrumentingAgents&, Node&);
    295     static bool handleMousePressImpl(InstrumentingAgents&);
    296295    static bool forcePseudoStateImpl(InstrumentingAgents&, const Element&, CSSSelector::PseudoClassType);
    297296
     
    338337    static void didFinishLoadingImpl(InstrumentingAgents&, unsigned long identifier, DocumentLoader*, double finishTime);
    339338    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);
    343340    static void didReceiveXHRResponseImpl(InstrumentingAgents&, unsigned long identifier);
    344341    static void willLoadXHRSynchronouslyImpl(InstrumentingAgents&);
     
    915912}
    916913
    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);
     914inline 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);
    921918}
    922919
  • trunk/Source/WebCore/inspector/InspectorNetworkAgent.cpp

    r208520 r209169  
    451451}
    452452
    453 void InspectorNetworkAgent::didFinishXHRLoading(ThreadableLoaderClient*, unsigned long identifier, const String& decodedText)
     453void InspectorNetworkAgent::didFinishXHRLoading(unsigned long identifier, const String& decodedText)
    454454{
    455455    m_resourcesData->setResourceContent(IdentifiersFactory::requestId(identifier), decodedText);
  • trunk/Source/WebCore/inspector/InspectorNetworkAgent.h

    r208742 r209169  
    5555class ResourceRequest;
    5656class ResourceResponse;
    57 class ThreadableLoaderClient;
    5857class URL;
    5958
     
    8382    void didFailLoading(unsigned long identifier, DocumentLoader&, const ResourceError&);
    8483    void didLoadResourceFromMemoryCache(DocumentLoader&, CachedResource&);
    85     void didFinishXHRLoading(ThreadableLoaderClient*, unsigned long identifier, const String& decodedText);
     84    void didFinishXHRLoading(unsigned long identifier, const String& decodedText);
    8685    void didReceiveXHRResponse(unsigned long identifier);
    8786    void willLoadXHRSynchronously();
  • trunk/Source/WebCore/xml/XMLHttpRequest.cpp

    r208985 r209169  
    984984    if (!m_binaryResponseBuilder)
    985985        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);
    987987
    988988    bool hadLoader = m_loader;
Note: See TracChangeset for help on using the changeset viewer.