summaryrefslogtreecommitdiffstats
path: root/extensions/common/permissions
diff options
context:
space:
mode:
authormikhail.pozdnyakov <mikhail.pozdnyakov@intel.com>2015-11-17 23:18:28 -0800
committerCommit bot <commit-bot@chromium.org>2015-11-18 07:19:25 +0000
commitd19c83ee78b525d98a33f9fb320fcfffd1535206 (patch)
tree73211bc29d0a72ce7ee74cf50ddfa9ab3d0d1edc /extensions/common/permissions
parent30b0f37300f8d671d29d91102ec7f475ed4cf7fe (diff)
downloadchromium_src-d19c83ee78b525d98a33f9fb320fcfffd1535206.zip
chromium_src-d19c83ee78b525d98a33f9fb320fcfffd1535206.tar.gz
chromium_src-d19c83ee78b525d98a33f9fb320fcfffd1535206.tar.bz2
Introduce chrome.displaySource API
This patch introduces the 'chrome.displaySource' API including the idl file and the permission string and feature. The patch also provides bindings code and the implementation delegate interface for the 'getAvailableSinks', 'requestAuthentication' methods and for the 'onSinksUpdated' event. The API tests are included. The API proposal doc: https://docs.google.com/document/d/1svs0p_b6KAIiBrKjaORsA2D8Pd84u8ksnTCfubYVVWA BUG=242107 Review URL: https://codereview.chromium.org/1410093008 Cr-Commit-Position: refs/heads/master@{#360299}
Diffstat (limited to 'extensions/common/permissions')
-rw-r--r--extensions/common/permissions/api_permission.h1
-rw-r--r--extensions/common/permissions/extensions_api_permissions.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/extensions/common/permissions/api_permission.h b/extensions/common/permissions/api_permission.h
index 4f5b38c..5d46ce9 100644
--- a/extensions/common/permissions/api_permission.h
+++ b/extensions/common/permissions/api_permission.h
@@ -243,6 +243,7 @@ class APIPermission {
kEnterpriseDeviceAttributes,
kCertificateProvider,
kResourcesPrivate,
+ kDisplaySource,
// Last entry: Add new entries above and ensure to update the
// "ExtensionPermission3" enum in tools/metrics/histograms/histograms.xml
// (by running update_extension_permission.py).
diff --git a/extensions/common/permissions/extensions_api_permissions.cc b/extensions/common/permissions/extensions_api_permissions.cc
index c9eb11b..70a667f 100644
--- a/extensions/common/permissions/extensions_api_permissions.cc
+++ b/extensions/common/permissions/extensions_api_permissions.cc
@@ -54,6 +54,7 @@ std::vector<APIPermissionInfo*> ExtensionsAPIPermissions::GetAllPermissions()
{APIPermission::kDiagnostics,
"diagnostics",
APIPermissionInfo::kFlagCannotBeOptional},
+ {APIPermission::kDisplaySource, "displaySource"},
{APIPermission::kDns, "dns"},
{APIPermission::kDocumentScan, "documentScan"},
{APIPermission::kExtensionView,