summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_permission_set.h
diff options
context:
space:
mode:
authorkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-18 02:05:25 +0000
committerkalman@chromium.org <kalman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-18 02:05:25 +0000
commit8774f4b65b6a970dd98e5000888b0c83358f4229 (patch)
treee139fb9d0b4724ff92968f55ffc2ebed50ecd5a8 /chrome/common/extensions/extension_permission_set.h
parent14acb5764b5a947975d7b7905a1ecdde2b91abad (diff)
downloadchromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.zip
chromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.tar.gz
chromium_src-8774f4b65b6a970dd98e5000888b0c83358f4229.tar.bz2
Convert app_bindings.js to the schema_generated_bindings.js infrastructure.
This involves opening up *all* custom bindings to web pages, where access is controlled content-script style using a URL-matches property in the API schema. BUG=104100,117282 TEST=unit_tests,browser_tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125811 Review URL: http://codereview.chromium.org/9460002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@127391 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_permission_set.h')
-rw-r--r--chrome/common/extensions/extension_permission_set.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/extensions/extension_permission_set.h b/chrome/common/extensions/extension_permission_set.h
index 35418a9..cec4078 100644
--- a/chrome/common/extensions/extension_permission_set.h
+++ b/chrome/common/extensions/extension_permission_set.h
@@ -318,6 +318,12 @@ class ExtensionPermissionSet
// Gets the API permissions in this set as a set of strings.
std::set<std::string> GetAPIsAsStrings() const;
+ // Gets the API permissions in this set, plus any that have implicit access
+ // (such as APIs that require no permissions, or APIs with functions that
+ // require no permissions).
+ // TODO(kalman): return scoped_ptr to avoid copying.
+ std::set<std::string> GetAPIsWithAnyAccessAsStrings() const;
+
// Returns whether this namespace has any functions which the extension has
// permission to use. For example, even though the extension may not have
// the "tabs" permission, "tabs.create" requires no permissions so