diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 18:07:02 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-17 18:07:02 +0000 |
commit | 4cdac10757c9a774c3defdaf705f0d8c99290d19 (patch) | |
tree | d175d1d492401a5b96f3880df45c603fe05aee8a /chrome/browser/browser_process.h | |
parent | 09da32d543461c90fcf3490966e0c4a670b9a2a8 (diff) | |
download | chromium_src-4cdac10757c9a774c3defdaf705f0d8c99290d19.zip chromium_src-4cdac10757c9a774c3defdaf705f0d8c99290d19.tar.gz chromium_src-4cdac10757c9a774c3defdaf705f0d8c99290d19.tar.bz2 |
Adds the anti-carpet bombing dialog. More specifically a new
EventHandler now exists between the buffered event handler and
download event handler. This new event handler asks the
DownloadRequestManager whether the download is allowed. This may
prompt the user and then the download continues or is canceled. The
DownloadRequestManager receives the request on the IO thread, forwards
to the UI thread, makes the decision, then notifies back on the IO
thread.
BUG=3422
TEST=make sure you don't see any problems downloading content.
Review URL: http://codereview.chromium.org/7479
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3543 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process.h')
-rw-r--r-- | chrome/browser/browser_process.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/browser_process.h b/chrome/browser/browser_process.h index cad8e89..eb67f8b 100644 --- a/chrome/browser/browser_process.h +++ b/chrome/browser/browser_process.h @@ -14,9 +14,13 @@ #include "base/basictypes.h" #include "base/message_loop.h" +#if defined(OS_WIN) +#include "chrome/browser/resource_dispatcher_host.h" +#endif // defined(OS_WIN) class AutomationProviderList; class ClipboardService; +class DownloadRequestManager; class GoogleURLTracker; class IconManager; class MetricsService; @@ -24,8 +28,8 @@ class NotificationService; class PrefService; class ProfileManager; class RenderProcessHost; -class ResourceDispatcherHost; class DebuggerWrapper; +class ResourceDispatcherHost; class WebAppInstallerService; class SuspendController; @@ -124,6 +128,11 @@ class BrowserProcess { virtual bool IsUsingNewFrames() = 0; #if defined(OS_WIN) + DownloadRequestManager* download_request_manager() { + ResourceDispatcherHost* rdh = resource_dispatcher_host(); + return rdh ? rdh->download_request_manager() : NULL; + } + // Returns an event that is signaled when the browser shutdown. virtual HANDLE shutdown_event() = 0; #endif |