Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2450)

Unified Diff: chrome/browser/plugins/flash_download_interception.h

Issue 2344293002: [HBD] Detect user-initiated Flash download in a new window (Closed)
Patch Set: fix mac test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/plugins/flash_download_interception.h
diff --git a/chrome/browser/plugins/flash_download_interception.h b/chrome/browser/plugins/flash_download_interception.h
index d655f83d0377573f8d09f3203b5f45a6272531f4..3b5b8e1849a044a70d2ea5aea20f3fe689d0c7b9 100644
--- a/chrome/browser/plugins/flash_download_interception.h
+++ b/chrome/browser/plugins/flash_download_interception.h
@@ -14,11 +14,20 @@ class NavigationHandle;
class NavigationThrottle;
}
+class HostContentSettingsMap;
+class GURL;
+
// This class creates navigation throttles that intercept navigations to Flash's
// download page. The user is queried about activating Flash instead, since
// Chrome already ships with it. Note that this is an UI thread class.
class FlashDownloadInterception {
public:
+ static bool ShouldStopFlashDownloadAction(
+ HostContentSettingsMap* host_content_settings_map,
+ const GURL& source_url,
+ const GURL& target_url,
+ bool has_user_gesture);
+
static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor(
content::NavigationHandle* handle);

Powered by Google App Engine
This is Rietveld 408576698