2010-10-05 Andrey Kosyakov <caseq@chromium.org>
authorcaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Oct 2010 12:27:32 +0000 (12:27 +0000)
committercaseq@chromium.org <caseq@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 6 Oct 2010 12:27:32 +0000 (12:27 +0000)
commit4197e5e7d903e2d1a829350838d2155045e9f9fe
tree3486165ca95fbcc46748a8c21116a1f8b3d54697
parent829c790b2ae5d863f67ea738948365c7996d82d7
2010-10-05  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: [Extensions API] Expose access to resource bodies
        Added support for encoding resource in WebInspector.getResourceContent()
        https://bugs.webkit.org/show_bug.cgi?id=45953

        * inspector/Inspector.idl: Added encoding parameter to getResourceContent()
        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::getResourceContent):
        * inspector/InspectorController.h:
        * inspector/InspectorResource.cpp: Added sourceBytes() to return encoded representation of resource's binary body.
        (WebCore::InspectorResource::sourceBytes):
        * inspector/InspectorResource.h:
        * inspector/front-end/ExtensionAPI.js:
        (WebInspector.injectedExtensionAPI.Resources.prototype.getContent):
        * inspector/front-end/ExtensionServer.js:
        (WebInspector.ExtensionServer):
        (WebInspector.ExtensionServer.prototype._onGetResourceContent):
        (WebInspector.ExtensionServer.prototype._onGetResourceContent.onContentAvailable):
        (WebInspector.getEncodedResourceContent):
        * inspector/front-end/NetworkPanel.js:
        (WebInspector.getResourceContent):
        * inspector/front-end/ResourcesPanel.js:
        (WebInspector.getResourceContent):

2010-10-05  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: [Extensions API] Expose access to resource bodies
        https://bugs.webkit.org/show_bug.cgi?id=45953

        * inspector/extensions-api-expected.txt:
        * inspector/extensions-resources-expected.txt:
        * inspector/extensions-resources.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@69185 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/inspector/extensions-api-expected.txt
LayoutTests/inspector/extensions-resources-expected.txt
LayoutTests/inspector/extensions-resources.html
WebCore/ChangeLog
WebCore/inspector/Inspector.idl
WebCore/inspector/InspectorController.cpp
WebCore/inspector/InspectorController.h
WebCore/inspector/InspectorResource.cpp
WebCore/inspector/InspectorResource.h
WebCore/inspector/front-end/ExtensionAPI.js
WebCore/inspector/front-end/ExtensionServer.js
WebCore/inspector/front-end/NetworkPanel.js
WebCore/inspector/front-end/ResourcesPanel.js