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

Unified Diff: chrome/browser/extensions/extension_info_map.h

Issue 8312005: Ignore paths when matching patterns for extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix silly typo. Created 9 years, 2 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/extensions/extension_info_map.h
diff --git a/chrome/browser/extensions/extension_info_map.h b/chrome/browser/extensions/extension_info_map.h
index 7ca8848db443db5524fddca52a8210fb460a72ce..c7d5726a279847f099ab20b564f8f6087a426a8a 100644
--- a/chrome/browser/extensions/extension_info_map.h
+++ b/chrome/browser/extensions/extension_info_map.h
@@ -66,6 +66,12 @@ class ExtensionInfoMap : public base::RefCountedThreadSafe<ExtensionInfoMap> {
bool IsExtensionInProcess(const std::string& extension_id,
int process_id) const;
+ // Returns true if there is exists an extension with the same origin as
+ // |origin| in |process_id| with |permission|.
+ bool SecurityOriginHasAPIPermission(
+ const GURL& origin, int process_id,
+ ExtensionAPIPermission::ID permission) const;
+
private:
// Extra dynamic data related to an extension.
struct ExtraData;

Powered by Google App Engine
This is Rietveld 408576698