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

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

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Limit interception to http:// and https:// Created 7 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
new file mode 100644
index 0000000000000000000000000000000000000000..331d7b421806ce71498f2589d75ef0a3aac43804
--- /dev/null
+++ b/chrome/browser/apps/app_url_redirector.h
@@ -0,0 +1,32 @@
+// 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,
+ ProfileIOData* profile_io_data);
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AppUrlRedirector);
+};
+
+#endif // CHROME_BROWSER_APPS_APP_URL_REDIRECTOR_H_

Powered by Google App Engine
This is Rietveld 408576698