diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 14:38:00 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-14 14:38:00 +0000 |
commit | a40996367757f82fb2e22035ac65c9d0510e1651 (patch) | |
tree | b4676838b8c03991dc09736ea0046cd61a27442c /chrome/browser/renderer_host/resource_dispatcher_host.h | |
parent | d90bcafafdccbef95760c2d9c1b4ce8206d46b7b (diff) | |
download | chromium_src-a40996367757f82fb2e22035ac65c9d0510e1651.zip chromium_src-a40996367757f82fb2e22035ac65c9d0510e1651.tar.gz chromium_src-a40996367757f82fb2e22035ac65c9d0510e1651.tar.bz2 |
Reverting 23420. It caused a reliability regression.
TBR=jam
BUG=none
TEST=reliability
Review URL: http://codereview.chromium.org/165532
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23437 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/resource_dispatcher_host.h')
-rw-r--r-- | chrome/browser/renderer_host/resource_dispatcher_host.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/browser/renderer_host/resource_dispatcher_host.h b/chrome/browser/renderer_host/resource_dispatcher_host.h index e36e97f..5353562 100644 --- a/chrome/browser/renderer_host/resource_dispatcher_host.h +++ b/chrome/browser/renderer_host/resource_dispatcher_host.h @@ -108,7 +108,6 @@ class ResourceDispatcherHost : public URLRequest::Delegate { has_started_reading(false), paused_read_bytes(0) { } - virtual ~ExtraRequestInfo() { resource_handler->OnRequestClosed(); } // Top-level ResourceHandler servicing this request. scoped_refptr<ResourceHandler> resource_handler; @@ -353,6 +352,11 @@ class ResourceDispatcherHost : public URLRequest::Delegate { // Retrieves a URLRequest. Must be called from the IO thread. URLRequest* GetURLRequest(GlobalRequestID request_id) const; + // A test to determining whether a given request should be forwarded to the + // download thread. + bool ShouldDownload(const std::string& mime_type, + const std::string& content_disposition); + // Notifies our observers that a request has been cancelled. void NotifyResponseCompleted(URLRequest* request, int process_id); @@ -547,6 +551,8 @@ class ResourceDispatcherHost : public URLRequest::Delegate { // List of objects observing resource dispatching. ObserverList<Observer> observer_list_; + PluginService* plugin_service_; + // For running tasks. ScopedRunnableMethodFactory<ResourceDispatcherHost> method_runner_; |