diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 14:39:32 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-09 14:39:32 +0000 |
commit | 4b16cc08cff942a5bccf9ac93626816b3142269c (patch) | |
tree | fc078cfb7263638b95c1711e03f63d673da17c26 /webkit/glue/devtools/js | |
parent | d139ddddddd5e232ebf8fc50dc7881a11b330b03 (diff) | |
download | chromium_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.js | 19 |
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; }; |