diff options
author | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 09:01:54 +0000 |
---|---|---|
committer | lazyboy@chromium.org <lazyboy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-03 09:01:54 +0000 |
commit | f85f5037bcba6e52fedae883add00b39f824edc3 (patch) | |
tree | 60a6c3fd2830a90d7c18fc6700f1d144bba04ef3 /chrome/browser/ui/search/instant_loader.h | |
parent | 090374df3d55fbe4e173d78e43684aa93675063d (diff) | |
download | chromium_src-f85f5037bcba6e52fedae883add00b39f824edc3.zip chromium_src-f85f5037bcba6e52fedae883add00b39f824edc3.tar.gz chromium_src-f85f5037bcba6e52fedae883add00b39f824edc3.tar.bz2 |
permissionrequest API for guest Download.
Exposed event:
event.type = 'download'
event.requestMethod = 'GET'/'POST'...
event.url = url
BUG=141204
TEST=Pending: osx + win (b/c there is a *ViewGuest change).
Added browser_tests:WebViewTest.Download, ran unit_tests:DownloadRequestLimiterTest*
Review URL: https://chromiumcodereview.appspot.com/13037003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192029 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/search/instant_loader.h')
-rw-r--r-- | chrome/browser/ui/search/instant_loader.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/chrome/browser/ui/search/instant_loader.h b/chrome/browser/ui/search/instant_loader.h index 1d5c693..251c43b 100644 --- a/chrome/browser/ui/search/instant_loader.h +++ b/chrome/browser/ui/search/instant_loader.h @@ -103,9 +103,10 @@ class InstantLoader : public content::NotificationObserver, virtual bool ShouldFocusPageAfterCrash() OVERRIDE; virtual void LostCapture() OVERRIDE; virtual void WebContentsFocused(content::WebContents* contents) OVERRIDE; - virtual bool CanDownload(content::RenderViewHost* render_view_host, + virtual void CanDownload(content::RenderViewHost* render_view_host, int request_id, - const std::string& request_method) OVERRIDE; + const std::string& request_method, + const base::Callback<void(bool)>& callback) OVERRIDE; virtual void HandleMouseDown() OVERRIDE; virtual void HandleMouseUp() OVERRIDE; virtual void HandlePointerActivate() OVERRIDE; |