summaryrefslogtreecommitdiffstats
path: root/content/public/browser
diff options
context:
space:
mode:
Diffstat (limited to 'content/public/browser')
-rw-r--r--content/public/browser/browser_plugin_guest_delegate.cc7
-rw-r--r--content/public/browser/browser_plugin_guest_delegate.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/content/public/browser/browser_plugin_guest_delegate.cc b/content/public/browser/browser_plugin_guest_delegate.cc
index 820b243..d51d12a 100644
--- a/content/public/browser/browser_plugin_guest_delegate.cc
+++ b/content/public/browser/browser_plugin_guest_delegate.cc
@@ -33,4 +33,11 @@ void BrowserPluginGuestDelegate::RequestMediaAccessPermission(
scoped_ptr<MediaStreamUI>());
}
+void BrowserPluginGuestDelegate::CanDownload(
+ const std::string& request_method,
+ const GURL& url,
+ const base::Callback<void(bool)>& callback) {
+ callback.Run(true);
+}
+
} // namespace content
diff --git a/content/public/browser/browser_plugin_guest_delegate.h b/content/public/browser/browser_plugin_guest_delegate.h
index b9de596..573658b 100644
--- a/content/public/browser/browser_plugin_guest_delegate.h
+++ b/content/public/browser/browser_plugin_guest_delegate.h
@@ -110,6 +110,11 @@ class CONTENT_EXPORT BrowserPluginGuestDelegate {
const MediaStreamRequest& request,
const MediaResponseCallback& callback);
+ // Asks the delegate if the given tab can download.
+ // Invoking the |callback| synchronously is OK.
+ virtual void CanDownload(const std::string& request_method,
+ const GURL& url,
+ const base::Callback<void(bool)>& callback);
};
} // namespace content