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

Unified Diff: chrome/common/extensions/extension_set.h

Issue 22944002: Implementation of the "Redirect URLs to Packaged Apps" feature. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 1) Fixed broken redirection for in-page WebKit-initiated navigations. All redirections work now. 2)… Created 7 years, 4 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/common/extensions/extension_set.h
diff --git a/chrome/common/extensions/extension_set.h b/chrome/common/extensions/extension_set.h
index a34b8c7b75c0f7a53ba5c3b03b5a69b7ce6bd7d8..2f307249224cf65da41b720fb119ed60e543e936 100644
--- a/chrome/common/extensions/extension_set.h
+++ b/chrome/common/extensions/extension_set.h
@@ -15,6 +15,10 @@
#include "googleurl/src/gurl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSecurityOrigin.h"
+namespace extensions {
+struct UrlHandlerInfo;
+};
+
class ExtensionURLInfo {
public:
// The extension system uses both a document's origin and its URL to
@@ -117,6 +121,11 @@ class ExtensionSet {
const extensions::Extension* GetHostedAppByOverlappingWebExtent(
const extensions::URLPatternSet& extent) const;
+ // Returns a platform app that's registered itself for handling of a URL
+ // pattern that matches |url|. If none, returns NULL.
+ const extensions::UrlHandlerInfo*
+ GetHandlingAppForURL(const GURL& url) const;
+
// Returns true if |new_url| is in the extent of the same extension as
// |old_url|. Also returns true if neither URL is in an app.
bool InSameExtent(const GURL& old_url, const GURL& new_url) const;

Powered by Google App Engine
This is Rietveld 408576698