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

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

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extent Created 9 years 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 340755705c3e54b64069ef46b97c5e579e8bede7..af8fc04b5521fd75f78de5ac6cb2e4f9a6d8c776 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 GURL& url) 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;

Powered by Google App Engine
This is Rietveld 408576698