Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_ | |
| 6 #define CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "content/public/browser/navigation_throttle.h" | |
| 12 | |
| 13 namespace content { | |
| 14 class NavigationHandle; | |
| 15 class NavigationThrottle; | |
|
Lei Zhang
2016/08/25 00:55:07
Either this is not needed, or the navigation_throt
trizzofo
2016/08/25 01:50:36
Done.
| |
| 16 } | |
| 17 | |
| 18 // This class creates navigation throttles that intercept navigations to Flash's | |
| 19 // download page. The user is queried about activating Flash instead, since | |
| 20 // Chrome already ships with it. Note that this is an UI thread class. | |
| 21 class FlashDownloadInterception { | |
| 22 public: | |
| 23 static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( | |
|
Lei Zhang
2016/08/25 00:55:07
Would unit tests be useful?
trizzofo
2016/08/25 01:50:36
Apparently, AppUrlRedirector (similar class) is te
trizzofo
2016/08/25 20:46:52
Since this CL is blocking some UI work (permission
| |
| 24 content::NavigationHandle* handle); | |
| 25 | |
| 26 private: | |
| 27 DISALLOW_COPY_AND_ASSIGN(FlashDownloadInterception); | |
| 28 }; | |
| 29 | |
| 30 #endif // CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_ | |
| OLD | NEW |