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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5dca02f560ff74c4ed08a7be068acb386b4f460b |
--- /dev/null |
+++ b/chrome/browser/apps/app_url_redirector.h |
@@ -0,0 +1,34 @@ |
+// Copyright 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ |
+#define CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ |
+ |
+#include "base/basictypes.h" |
+ |
+namespace content { |
+class ResourceThrottle; |
+} |
+ |
+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 content::ResourceThrottle* MaybeCreateThrottleFor( |
+ net::URLRequest* request, |
+ int render_process_id, |
+ int render_view_id, |
+ ProfileIOData* profile_io_data); |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector); |
+}; |
+ |
+#endif // CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_ |