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

Unified Diff: extensions/common/extensions_client.h

Issue 58853013: Refactor PermissionsData to pull out the check for scripting the webstore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « chrome/common/extensions/permissions/permissions_data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/common/extensions_client.h
diff --git a/extensions/common/extensions_client.h b/extensions/common/extensions_client.h
index 71a4dfded19587a0eda83c7d52575e091b1dc14b..928347fa4b382bc11241719a22d9fbaae6b3ce5c 100644
--- a/extensions/common/extensions_client.h
+++ b/extensions/common/extensions_client.h
@@ -9,6 +9,8 @@
#include <string>
#include <vector>
+class GURL;
+
namespace extensions {
class APIPermissionSet;
@@ -63,6 +65,9 @@ class ExtensionsClient {
const Extension* extension,
const APIPermissionSet& api_permissions) const = 0;
+ // Returns false if contents scripts are forbidden from running on |url|.
Daniel Erat 2013/11/11 23:39:27 nit: s/contents/content/ (unless i'm mistaken abou
Yoyo Zhou 2013/11/11 23:56:53 Oops.
+ virtual bool IsScriptableURL(const GURL& url, std::string* error) const = 0;
+
// Return the extensions client.
static ExtensionsClient* Get();
« no previous file with comments | « chrome/common/extensions/permissions/permissions_data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698