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

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

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Addressed comments 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
« no previous file with comments | « no previous file | chrome/browser/apps/app_url_redirector.cc » ('j') | chrome/browser/apps/app_url_redirector.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..629af379f1bf0681656e7499746fde6e6eaf70ea 100644
--- a/chrome/browser/apps/app_url_redirector.h
+++ b/chrome/browser/apps/app_url_redirector.h
@@ -6,24 +6,22 @@
#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. Note that this is
+// a UI thread class.
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);
« no previous file with comments | « no previous file | chrome/browser/apps/app_url_redirector.cc » ('j') | chrome/browser/apps/app_url_redirector.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698