Web Inspector: Add support for disabling cache in web inspector.
authorvsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jul 2011 21:52:18 +0000 (21:52 +0000)
committervsevik@chromium.org <vsevik@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 20 Jul 2011 21:52:18 +0000 (21:52 +0000)
commit5a5be64fbd198d16b1faacee6797f0d9d320f04f
tree30b52e64d35954dddda4d039543e781b217bf3d7
parent1fe66e89b6c4a5814d74813d8b970722804f6ddb
Web Inspector: Add support for disabling cache in web inspector.
https://bugs.webkit.org/show_bug.cgi?id=64097

Reviewed by Pavel Feldman.

Source/WebCore:

Tests: http/tests/inspector/network/network-disable-cache-memory.html
       http/tests/inspector/network/network-disable-cache-xhrs.html

* English.lproj/localizedStrings.js:
* inspector/Inspector.json:
* inspector/InspectorClient.h:
(WebCore::InspectorClient::setCacheDisabled):
* inspector/InspectorResourceAgent.cpp:
(WebCore::InspectorResourceAgent::willSendRequest):
(WebCore::InspectorResourceAgent::enable):
(WebCore::InspectorResourceAgent::disable):
(WebCore::InspectorResourceAgent::setCacheDisabled):
* inspector/InspectorResourceAgent.h:
* inspector/front-end/NetworkManager.js:
(WebInspector.NetworkManager.prototype.inflightResourceForURL):
(WebInspector.NetworkManager.prototype._cacheDisabledSettingChanged):
* inspector/front-end/Settings.js:
(WebInspector.Settings):
* inspector/front-end/SettingsScreen.js:
(WebInspector.SettingsScreen):

Source/WebKit/chromium:

* src/InspectorClientImpl.cpp:
(WebKit::InspectorClientImpl::setCacheDisabled):
* src/InspectorClientImpl.h:
* src/WebDevToolsAgentImpl.cpp:
(WebKit::WebDevToolsAgentImpl::setCacheDisabled):
* src/WebDevToolsAgentImpl.h:
* src/js/DevTools.js:
():

LayoutTests:

* http/tests/inspector/inspector-test.js:
(initialize_InspectorTest):
* http/tests/inspector/network/network-disable-cache-memory-expected.txt: Added.
* http/tests/inspector/network/network-disable-cache-memory.html: Added.
* http/tests/inspector/network/network-disable-cache-xhrs-expected.txt: Added.
* http/tests/inspector/network/network-disable-cache-xhrs.html: Added.
* http/tests/inspector/network/resources/resource.php:
* platform/gtk/Skipped:
* platform/mac/Skipped:
* platform/qt/Skipped:
* platform/win/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@91408 268f45cc-cd09-0410-ab3c-d52691b4dbfc
26 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/inspector/inspector-test.js
LayoutTests/http/tests/inspector/network/network-disable-cache-memory-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/inspector/network/network-disable-cache-memory.html [new file with mode: 0644]
LayoutTests/http/tests/inspector/network/network-disable-cache-xhrs-expected.txt [new file with mode: 0644]
LayoutTests/http/tests/inspector/network/network-disable-cache-xhrs.html [new file with mode: 0644]
LayoutTests/http/tests/inspector/network/resources/resource.php
LayoutTests/platform/gtk/Skipped
LayoutTests/platform/mac/Skipped
LayoutTests/platform/qt/Skipped
LayoutTests/platform/win/Skipped
Source/WebCore/ChangeLog
Source/WebCore/English.lproj/localizedStrings.js
Source/WebCore/inspector/Inspector.json
Source/WebCore/inspector/InspectorClient.h
Source/WebCore/inspector/InspectorResourceAgent.cpp
Source/WebCore/inspector/InspectorResourceAgent.h
Source/WebCore/inspector/front-end/NetworkManager.js
Source/WebCore/inspector/front-end/Settings.js
Source/WebCore/inspector/front-end/SettingsScreen.js
Source/WebKit/chromium/ChangeLog
Source/WebKit/chromium/src/InspectorClientImpl.cpp
Source/WebKit/chromium/src/InspectorClientImpl.h
Source/WebKit/chromium/src/WebDevToolsAgentImpl.cpp
Source/WebKit/chromium/src/WebDevToolsAgentImpl.h
Source/WebKit/chromium/src/js/DevTools.js