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

Unified Diff: chrome/common/extensions/api/developer_private.idl

Issue 997183005: [Extensions] Add a developerPrivate.updateExtensionConfiguration function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/common/extensions/api/developer_private.idl
diff --git a/chrome/common/extensions/api/developer_private.idl b/chrome/common/extensions/api/developer_private.idl
index d7e155598bfcfc08c477516f54f55b96c8a90833..76e9e727a783fb8f318518dfca6f7f038790d2c5 100644
--- a/chrome/common/extensions/api/developer_private.idl
+++ b/chrome/common/extensions/api/developer_private.idl
@@ -79,6 +79,14 @@ namespace developerPrivate {
TERMINATED
};
+ enum PermissionType {
Devlin 2015/03/16 21:35:16 This is not my favorite name, because it's a bit o
not at google - send to devlin 2015/03/16 21:48:08 I might as well reply to this comment for my API m
Devlin 2015/03/16 22:41:37 I like it. I was thinking about having the ability
+ FILE_ACCESS,
+ INCOGNITO_ACCESS,
+ ERROR_COLLECTION,
+ RUN_ON_ALL_URLS,
+ SHOW_ACTION_BUTTON
+ };
+
dictionary AccessModifier {
boolean isEnabled;
boolean isActive;
@@ -226,6 +234,12 @@ namespace developerPrivate {
boolean incognito;
};
+ dictionary SetPermissionProperties {
+ DOMString extensionId;
+ PermissionType permission;
+ boolean isActive;
+ };
+
dictionary ReloadOptions {
// If false, an alert dialog will show in the event of a reload error.
// Defaults to false.
@@ -397,13 +411,6 @@ namespace developerPrivate {
static void inspect(InspectOptions options,
optional VoidCallback callback);
- // Enables / Disables file access for an extension.
- // |extensionId| : The id of the extension to set file access for.
- // |allow| : Whether or not to allow file access for the extension.
- static void allowFileAccess(DOMString extensionId,
- boolean allow,
- optional VoidCallback callback);
-
// Reloads a given extension.
// |extensionId| : The id of the extension to reload.
// |options| : Additional configuration parameters.
@@ -411,12 +418,10 @@ namespace developerPrivate {
optional ReloadOptions options,
optional VoidCallback callback);
- // Allows / Disallows an extension to run in incognito mode.
- // |extensionId| : The id of the extension.
- // |allow| : Whether or not the extension should be allowed incognito.
- static void allowIncognito(DOMString extensionId,
- boolean allow,
- optional VoidCallback callback);
+ // Sets a permission for an extension.
+ // |properties| : The properties to use for setting the permission.
+ static void setExtensionPermission(SetPermissionProperties properties,
+ optional VoidCallback callback);
// Loads a user-selected unpacked item.
// |options| : Additional configuration parameters.

Powered by Google App Engine
This is Rietveld 408576698