2010-09-29 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Sep 2010 12:53:28 +0000 (12:53 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 30 Sep 2010 12:53:28 +0000 (12:53 +0000)
commit16db2afe79d81557a74a8244b15751736a8b8df4
tree1802924054274489ea07b82a0cff701470238b37
parent9a16e7341aeb24612fbc049c2cae49877bda261d
2010-09-29  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: display headers actually used by network stack in Resources tab
        https://bugs.webkit.org/show_bug.cgi?id=46092

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::willSendRequest): enable raw headers reporting if front-end is visible.
        * inspector/InspectorResource.cpp:
        (WebCore::InspectorResource::updateResponse):
        * platform/network/ResourceRawHeaders.h: Added.
        * platform/network/ResourceRequestBase.h: Added flag to enable raw headers reporting.
        (WebCore::ResourceRequestBase::reportRawHeaders):
        (WebCore::ResourceRequestBase::setReportRawHeaders):
        (WebCore::ResourceRequestBase::ResourceRequestBase):
        * platform/network/ResourceResponseBase.cpp: Added support for raw headers.
        (WebCore::ResourceResponseBase::resourceRawHeaders):
        (WebCore::ResourceResponseBase::setResourceRawHeaders):
        * platform/network/ResourceResponseBase.h:

2010-09-29  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: display headers actually used by network stack in Resources tab
        Added plumbing for raw headers flag and response field between chromium and WebCore.
        https://bugs.webkit.org/show_bug.cgi?id=46092

        * WebKit.gyp:
        * public/WebResourceRawHeaders.h: Added.
        * public/WebURLRequest.h:
        * public/WebURLResponse.h:
        * src/WebDevToolsAgentImpl.cpp:
        (WebKit::WebDevToolsAgentImpl::willSendRequest):
        * src/WebResourceRawHeaders.cpp: Added.
        (WebKit::WebResourceRawHeaders::WebResourceRawHeaders):
        (WebKit::WebResourceRawHeaders::~WebResourceRawHeaders):
        (WebKit::WebResourceRawHeaders::operator WTF::PassRefPtr<WebCore::ResourceRawHeaders>):
        (WebKit::addHeader):
        (WebKit::WebResourceRawHeaders::addRequestHeader):
        (WebKit::WebResourceRawHeaders::addResponseHeader):
        * src/WebURLRequest.cpp:
        (WebKit::WebURLRequest::setReportRawHeaders):
        (WebKit::WebURLRequest::reportRawHeaders):
        * src/WebURLResponse.cpp:
        (WebKit::WebURLResponse::resourceRawHeaders):
        (WebKit::WebURLResponse::setResourceRawHeaders):
        * src/WebURLResponsePrivate.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@68781 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
WebCore/ChangeLog
WebCore/GNUmakefile.am
WebCore/WebCore.gypi
WebCore/WebCore.pro
WebCore/WebCore.vcproj/WebCore.vcproj
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/inspector/InspectorController.cpp
WebCore/inspector/InspectorResource.cpp
WebCore/platform/network/ResourceRawHeaders.h [new file with mode: 0755]
WebCore/platform/network/ResourceRequestBase.h
WebCore/platform/network/ResourceResponseBase.cpp
WebCore/platform/network/ResourceResponseBase.h
WebKit/chromium/ChangeLog
WebKit/chromium/WebKit.gyp
WebKit/chromium/public/WebResourceRawHeaders.h [new file with mode: 0644]
WebKit/chromium/public/WebURLRequest.h
WebKit/chromium/public/WebURLResponse.h
WebKit/chromium/src/WebDevToolsAgentImpl.cpp
WebKit/chromium/src/WebResourceRawHeaders.cpp [new file with mode: 0644]
WebKit/chromium/src/WebURLRequest.cpp
WebKit/chromium/src/WebURLResponse.cpp
WebKit/chromium/src/WebURLResponsePrivate.h