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

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

Issue 2272123002: [HBD] Intercept navigation to Flash download page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes per Lei Zhang's comments 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
new file mode 100644
index 0000000000000000000000000000000000000000..d655f83d0377573f8d09f3203b5f45a6272531f4
--- /dev/null
+++ b/chrome/browser/plugins/flash_download_interception.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
+#define CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
+
+#include <memory>
+
+#include "base/macros.h"
+
+namespace content {
+class NavigationHandle;
+class NavigationThrottle;
+}
+
+// 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 std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor(
+ content::NavigationHandle* handle);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(FlashDownloadInterception);
+};
+
+#endif // CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
« no previous file with comments | « chrome/browser/chrome_content_browser_client.cc ('k') | chrome/browser/plugins/flash_download_interception.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698