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; |