summaryrefslogtreecommitdiffstats
path: root/webkit/glue/devtools/js
diff options
context:
space:
mode:
authorpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 14:39:32 +0000
committerpfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-09 14:39:32 +0000
commit4b16cc08cff942a5bccf9ac93626816b3142269c (patch)
treefc078cfb7263638b95c1711e03f63d673da17c26 /webkit/glue/devtools/js
parentd139ddddddd5e232ebf8fc50dc7881a11b330b03 (diff)
downloadchromium_src-4b16cc08cff942a5bccf9ac93626816b3142269c.zip
chromium_src-4b16cc08cff942a5bccf9ac93626816b3142269c.tar.gz
chromium_src-4b16cc08cff942a5bccf9ac93626816b3142269c.tar.bz2
DevTools: Cache resource metainfo even when debugger agent is not attached.
- Cache 200 resources - Hide agent functionality behind the flag Review URL: http://codereview.chromium.org/62183 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13419 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/devtools/js')
-rw-r--r--webkit/glue/devtools/js/net_agent.js19
1 files changed, 1 insertions, 18 deletions
diff --git a/webkit/glue/devtools/js/net_agent.js b/webkit/glue/devtools/js/net_agent.js
index 00b511c..64ef4a6 100644
--- a/webkit/glue/devtools/js/net_agent.js
+++ b/webkit/glue/devtools/js/net_agent.js
@@ -21,8 +21,6 @@ devtools.NetAgent = function() {
goog.bind(this.didReceiveResponse, this);
RemoteNetAgent.DidFinishLoading =
goog.bind(this.didFinishLoading, this);
- RemoteNetAgent.DidFailLoading =
- goog.bind(this.didFailLoading, this);
};
@@ -138,20 +136,5 @@ devtools.NetAgent.prototype.didFinishLoading = function(identifier, value) {
}
resource.endTime = value.endTime;
resource.finished = true;
- resource.failed = false;
-};
-
-
-/**
- * @see NetAgentDelegate.
- * {@inheritDoc}.
- */
-devtools.NetAgent.prototype.didFailLoading = function(identifier, value) {
- var resource = this.resources_[identifier];
- if (!resource) {
- return;
- }
- resource.endTime = value.endTime;
- resource.finished = false;
- resource.failed = true;
+ resource.failed = !!value.errorCode;
};