| 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 |
| 12 namespace content { |
| 13 class NavigationHandle; |
| 14 class NavigationThrottle; |
| 15 } |
| 16 |
| 17 // This class creates navigation throttles that intercept navigations to Flash's |
| 18 // download page. The user is queried about activating Flash instead, since |
| 19 // Chrome already ships with it. Note that this is an UI thread class. |
| 20 class FlashDownloadInterception { |
| 21 public: |
| 22 static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( |
| 23 content::NavigationHandle* handle); |
| 24 |
| 25 private: |
| 26 DISALLOW_COPY_AND_ASSIGN(FlashDownloadInterception); |
| 27 }; |
| 28 |
| 29 #endif // CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_ |
| OLD | NEW |