2008-03-25 Kevin McCullough <kmccullough@apple.com>
authorkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Mar 2008 23:32:01 +0000 (23:32 +0000)
committerkmccullough@apple.com <kmccullough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 25 Mar 2008 23:32:01 +0000 (23:32 +0000)
commitfac2e8c10587e3515603e42e0b68593bcc8c7660
tree8e7e47410008281c00ef7ce095ae1f85777dbccd
parent3d948db3d042d74af836cb669444f39970e4218a
2008-03-25  Kevin McCullough  <kmccullough@apple.com>

        Reviewed by Tim.

        -<rdar://problem/5712804> XMLHttpRequests do not show response contents, preview images (14313)
        -<rdar://problem/5712931> XMLHttpRequests should be shown separately and grouped (14315)
        -<rdar://problem/5732836> XMLHttpRequest: Inspector should show network activity/XHR in Console (17233)
        - XMLHttpRequestResources now identify themselves to the inspector which caches the data related to
        the request since no one else caches it.  However this is just the plumbing and the Inspector's UI
        has not been changed to show XHR resources yet.

        * page/InspectorController.cpp: Add ability to set XHR data on an InspectorResource.
        (WebCore::XMLHttpRequestResource::XMLHttpRequestResource):
        (WebCore::XMLHttpRequestResource::data):
        (WebCore::XMLHttpRequestResource::encoding):
        (WebCore::InspectorResource::): Add new type.
        (WebCore::InspectorResource::~InspectorResource): No longer virtual since we are not using inheritance.
        (WebCore::InspectorResource::type): Ditto.
        (WebCore::InspectorResource::setXMLHttpRequestResource):
        (WebCore::InspectorResource::isXHR):
        (WebCore::InspectorResource::xmlHttpRequestData):
        (WebCore::InspectorResource::xmlHttpRequestEncoding):
        (WebCore::InspectorResource::InspectorResource):
        (WebCore::addSourceToFrame):
        (WebCore::InspectorController::resourceRetrievedByXMLHttpRequest):
        * page/InspectorController.h: Add accessor for setting the XHR data.
        * page/inspector/Resource.js: Keep the XHR resource types in sync with the Inspector Controller.
        * xml/XMLHttpRequest.cpp: Give the InspectorController the XHR information to cache.
        (WebCore::XMLHttpRequest::send):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@31298 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/page/InspectorController.cpp
WebCore/page/InspectorController.h
WebCore/page/inspector/Resource.js
WebCore/xml/XMLHttpRequest.cpp