Index: chrome/common/extensions/extension_set.h |
diff --git a/chrome/common/extensions/extension_set.h b/chrome/common/extensions/extension_set.h |
index 340755705c3e54b64069ef46b97c5e579e8bede7..bf743e729ebe4c5cc1db688cdb0204a0f771d09e 100644 |
--- a/chrome/common/extensions/extension_set.h |
+++ b/chrome/common/extensions/extension_set.h |
@@ -102,6 +102,13 @@ class ExtensionSet { |
// EventBindings::HandleContextCreated) |
const Extension* GetByURL(const ExtensionURLInfo& info) const; |
+ // Returns the extension whose web extent contains the URL. |
+ const Extension* GetByWebExtent(const ExtensionURLInfo& info) const; |
+ |
+ // Returns an extension that contains any URL that overlaps with the given |
+ // extent, if one exists. |
+ const Extension* GetByOverlappingWebExtent(const URLPatternSet& extent) 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; |