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

Unified Diff: chrome/browser/apps/app_url_redirector.h

Issue 1350913008: Revert of Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Created 5 years, 3 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/apps/app_url_redirector.h
diff --git a/chrome/browser/apps/app_url_redirector.h b/chrome/browser/apps/app_url_redirector.h
index 629af379f1bf0681656e7499746fde6e6eaf70ea..331d7b421806ce71498f2589d75ef0a3aac43804 100644
--- a/chrome/browser/apps/app_url_redirector.h
+++ b/chrome/browser/apps/app_url_redirector.h
@@ -6,22 +6,24 @@
#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 NavigationHandle;
-class NavigationThrottle;
-class WebContents;
+class ResourceThrottle;
}
-// 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.
+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.
class AppUrlRedirector {
public:
- static scoped_ptr<content::NavigationThrottle> MaybeCreateThrottleFor(
- content::NavigationHandle* handle);
+ static content::ResourceThrottle* MaybeCreateThrottleFor(
+ net::URLRequest* request,
+ ProfileIOData* profile_io_data);
private:
DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector);

Powered by Google App Engine
This is Rietveld 408576698