summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authoryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 17:10:28 +0000
committeryurys@chromium.org <yurys@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-30 17:10:28 +0000
commitfce76afcfa48a01ebcbd05c8e9277b3bd242c6b6 (patch)
tree74e7a849b009a3d4e3046f281159696e4e1dbc7f /webkit/glue
parentbc6649e0e47bb6f6031722389d30461839a38355 (diff)
downloadchromium_src-fce76afcfa48a01ebcbd05c8e9277b3bd242c6b6.zip
chromium_src-fce76afcfa48a01ebcbd05c8e9277b3bd242c6b6.tar.gz
chromium_src-fce76afcfa48a01ebcbd05c8e9277b3bd242c6b6.tar.bz2
DevTools: provisional implementation of new methods in WebDevToolsAgent in https://bugs.webkit.org/show_bug.cgi?id=31832
This method will allow to propagate resource load notifications from plugins to InspectorController. BUG=2084 Review URL: http://codereview.chromium.org/434080 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33292 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webdevtoolsagent_impl.cc21
1 files changed, 21 insertions, 0 deletions
diff --git a/webkit/glue/webdevtoolsagent_impl.cc b/webkit/glue/webdevtoolsagent_impl.cc
index 39e7a02..b1f6b87 100644
--- a/webkit/glue/webdevtoolsagent_impl.cc
+++ b/webkit/glue/webdevtoolsagent_impl.cc
@@ -485,28 +485,49 @@ void WebDevToolsAgentImpl::identifierForInitialRequest(
unsigned long resourceId,
WebKit::WebFrame* frame,
const WebURLRequest& request) {
+ if (InspectorController* ic = GetInspectorController()) {
+ WebFrameImpl* web_frame_impl = static_cast<WebFrameImpl*>(frame);
+ FrameLoader* frame_loader = web_frame_impl->frame()->loader();
+ DocumentLoader* loader = frame_loader->activeDocumentLoader();
+ ic->identifierForInitialRequest(resourceId, loader,
+ request.toResourceRequest());
+ }
}
void WebDevToolsAgentImpl::willSendRequest(
unsigned long resourceId,
const WebURLRequest& request) {
+ if (InspectorController* ic = GetInspectorController()) {
+ ic->willSendRequest(resourceId, request.toResourceRequest(),
+ ResourceResponse());
+ }
}
void WebDevToolsAgentImpl::didReceiveData(unsigned long resourceId,
int length) {
+ if (InspectorController* ic = GetInspectorController())
+ ic->didReceiveContentLength(resourceId, length);
}
void WebDevToolsAgentImpl::didReceiveResponse(
unsigned long resourceId,
const WebURLResponse& response) {
+ if (InspectorController* ic = GetInspectorController())
+ ic->didReceiveResponse(resourceId, response.toResourceResponse());
}
void WebDevToolsAgentImpl::didFinishLoading(
unsigned long resourceId) {
+ if (InspectorController* ic = GetInspectorController()) {
+ ic->didFinishLoading(resourceId);
+ }
}
void WebDevToolsAgentImpl::didFailLoading(unsigned long resourceId,
const WebURLError& error) {
+ ResourceError resource_error;
+ if (InspectorController* ic = GetInspectorController())
+ ic->didFailLoading(resourceId, resource_error);
}