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

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: Created 4 years, 4 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/apps/app_url_redirector.h b/chrome/browser/plugins/flash_download_interception.h
similarity index 64%
copy from chrome/browser/apps/app_url_redirector.h
copy to chrome/browser/plugins/flash_download_interception.h
index 8f298db1c1ae7012ebca9b5b5196509b927db420..03b7a6ead2c0716e5173c6afb651d5f83f24ffa7 100644
--- a/chrome/browser/apps/app_url_redirector.h
+++ b/chrome/browser/plugins/flash_download_interception.h
@@ -1,9 +1,9 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
+// 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_APPS_APP_URL_REDIRECTOR_H_
-#define CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_
+#ifndef CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
+#define CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
#include <memory>
@@ -13,19 +13,18 @@
namespace content {
class NavigationHandle;
class NavigationThrottle;
-class WebContents;
}
// This class creates navigation throttles that redirect URLs to apps that have
// a matching URL handler in the 'url_handlers' manifest key. Note that this is
// a UI thread class.
-class AppUrlRedirector {
+class FlashDownloadInterception {
tommycli 2016/08/24 19:11:30 class comment should be updated. something similar
trizzofo 2016/08/24 22:45:13 Changed the comment. ptal. I decided to name the
public:
static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor(
content::NavigationHandle* handle);
private:
- DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector);
+ DISALLOW_COPY_AND_ASSIGN(FlashDownloadInterception);
};
-#endif // CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_
+#endif // CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_

Powered by Google App Engine
This is Rietveld 408576698