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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ 5 #ifndef CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
6 #define CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ 6 #define CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "content/public/browser/navigation_throttle.h" 11 #include "content/public/browser/navigation_throttle.h"
12 12
13 namespace content { 13 namespace content {
14 class NavigationHandle; 14 class NavigationHandle;
15 class NavigationThrottle; 15 class NavigationThrottle;
16 class WebContents;
17 } 16 }
18 17
19 // This class creates navigation throttles that redirect URLs to apps that have 18 // This class creates navigation throttles that redirect URLs to apps that have
20 // a matching URL handler in the 'url_handlers' manifest key. Note that this is 19 // a matching URL handler in the 'url_handlers' manifest key. Note that this is
21 // a UI thread class. 20 // a UI thread class.
22 class AppUrlRedirector { 21 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
23 public: 22 public:
24 static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( 23 static std::unique_ptr<content::NavigationThrottle> MaybeCreateThrottleFor(
25 content::NavigationHandle* handle); 24 content::NavigationHandle* handle);
26 25
27 private: 26 private:
28 DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector); 27 DISALLOW_COPY_AND_ASSIGN(FlashDownloadInterception);
29 }; 28 };
30 29
31 #endif // CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ 30 #endif // CHROME_BROWSER_PLUGINS_FLASH_DOWNLOAD_INTERCEPTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698