Chromium Code Reviews| Index: chrome/browser/apps/app_url_redirector.h |
| diff --git a/chrome/browser/apps/app_url_redirector.h b/chrome/browser/apps/app_url_redirector.h |
| index 331d7b421806ce71498f2589d75ef0a3aac43804..325912caa3dba63232af4f3ccd08529c48e76288 100644 |
| --- a/chrome/browser/apps/app_url_redirector.h |
| +++ b/chrome/browser/apps/app_url_redirector.h |
| @@ -6,24 +6,21 @@ |
| #define CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ |
| #include "base/basictypes.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "content/public/browser/navigation_throttle.h" |
| namespace content { |
| -class ResourceThrottle; |
| +class NavigationHandle; |
| +class NavigationThrottle; |
| +class WebContents; |
| } |
| -namespace net { |
| -class URLRequest; |
| -} |
| - |
| -class ProfileIOData; |
| - |
| -// This class creates resource throttles that redirect URLs to apps that |
| -// have a matching URL handler in the 'url_handlers' manifest key. |
| +// This class creates navigation throttles that redirect URLs to apps that have |
| +// a matching URL handler in the 'url_handlers' manifest key. |
|
Charlie Reis
2015/09/11 00:06:48
Is this class moving from the IO thread to the UI
clamy
2015/09/11 13:30:44
Yes it's moving to be entirely on the UI thread. I
clamy
2015/09/16 01:03:21
Updated the comment.
|
| class AppUrlRedirector { |
| public: |
| - static content::ResourceThrottle* MaybeCreateThrottleFor( |
| - net::URLRequest* request, |
| - ProfileIOData* profile_io_data); |
| + static scoped_ptr<content::NavigationThrottle> MaybeCreateThrottleFor( |
| + content::NavigationHandle* handle); |
| private: |
| DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector); |