summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_permission_set.h
Commit message (Collapse)AuthorAgeFilesLines
* Move the `privacy` extension API out of experimental.mkwst@chromium.org2012-01-251-0/+2
| | | | | | | | | BUG=88030 TEST=browser_test (ExtensionAPITest.Preference*) Review URL: https://chromiumcodereview.appspot.com/9244005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119031 0039d316-1c4b-4281-b951-d872f2087c98
* Take the Extension Storage API out of experimental:kalman@chromium.org2012-01-231-0/+1
| | | | | | | | | | | | | | | - add "storage" permissions to exension_permission_set. - s/experimental.storage/storage/g (file contents and names). - s/EXPERIMENTAL_STORAGE/STORAGE/g (ditto). - re-sort anything out of order as a result. - regenerate docs. BUG=92589 TEST=browser_tests --gtest_filter=*ExtensionSettings* --gtest_also_run_disabled_tests Review URL: https://chromiumcodereview.appspot.com/9274004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118656 0039d316-1c4b-4281-b951-d872f2087c98
* Change the IME warning to "Your data on all sites"zork@chromium.org2012-01-191-1/+0
| | | | | | | | | BUG=chromium-os:24085 TEST=Install an IME extension, check that the right permission is checked Review URL: https://chromiumcodereview.appspot.com/9179007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118271 0039d316-1c4b-4281-b951-d872f2087c98
* Update extension permissions to support optional permission API by default.jstritar@chromium.org2012-01-091-4/+4
| | | | | | | | | | BUG=106207 TEST=existing Review URL: http://codereview.chromium.org/9120012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116958 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: only inject the necessary extension API JSON into ↵kalman@chromium.org2011-12-211-0/+6
| | | | | | | | | | | schema_generated_bindings.js when populating the chrome.* namespace, where "necessary" is defined as the APIs that the extension has permission to use. BUG=80310 TEST=Extension* browser_tests Review URL: http://codereview.chromium.org/8888024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115252 0039d316-1c4b-4281-b951-d872f2087c98
* Adding terminal private extension api.tbarzic@chromium.org2011-12-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding extension api that will enable HTML terminal to access crosh. The api is private and will be used by terminal extension. Api will be able to start new crosh process, send input to it, listen to output streams of the crosh process and close connection to the process. -------------------------------------------------------------------------------- CROSH_PROXY Represents connection to one crosh process. When its opened, it launches new process ands starts output wather on the thread supplied by crosh_proxy_registry. When it gets closed it ensures watcher and process go away too. It also supplies callback that will be called when watcher observes some output from crosh process. -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- CROSH_PROXY_REGISTRY Lazily initiated class that keeps track of all existing crosh_proxies and makes sure all of them eventually get destroyed. All proxy objects must be accessed through the registry. -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- CROSH_OUTPUT_WATCHER Lives on its own thread and waits for output from a crosh process (either stdout or stderr). File descriptors asigned to the output streams are supplied by proxy that owns watcher. While output streams are observed, watcher's thread is blocked. -------------------------------------------------------------------------------- BUG=chromium-os:22323 TEST= ProcessProxyTest.* ProcessOutputWatcherTest.* ExtensionTerminalPrivateApiTest.* Review URL: http://codereview.chromium.org/8835001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114308 0039d316-1c4b-4281-b951-d872f2087c98
* Rename permission from input to ime.zork@chromium.org2011-12-131-0/+2
| | | | | | | | | | | | Add a proper permission message. Update the API to be ChromeOS only BUG=None TEST=None Review URL: http://codereview.chromium.org/8757015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114181 0039d316-1c4b-4281-b951-d872f2087c98
* Implement chrome.systemPrivate.getIncognitoModeAvailability extension API ↵battre@chromium.org2011-12-061-0/+1
| | | | | | | | | | | | | | function. This is a function for the bookmark manager, which wants to show the "Open in Incognito mode" option only if the incognito mode is available. BUG=none TEST=no Review URL: http://codereview.chromium.org/8662008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113184 0039d316-1c4b-4281-b951-d872f2087c98
* Move app notification getChannel API out of experimentalasargent@chromium.org2011-12-021-0/+1
| | | | | | | | | | | | | | | We're still gating things at the server with trusted testers, but to be able to do experiments with real apps we need to remove the requirement for the experimental flag (you can't install apps from the webstore that have the experimental permission). BUG=98145 TEST=Should be able to install an app with the 'appNotifications' permission. Review URL: http://codereview.chromium.org/8776022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112648 0039d316-1c4b-4281-b951-d872f2087c98
* Restrict access to permissions based on extension types.jstritar@chromium.org2011-12-011-28/+62
| | | | | | | | | BUG=101992 TEST=existing Review URL: http://codereview.chromium.org/8598022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112548 0039d316-1c4b-4281-b951-d872f2087c98
* Rename chrome.experimental.webRequest to chrome.webRequestbattre@chromium.org2011-11-301-0/+1
| | | | | | | | | | | Note that this CL also introduces a new permission webRequestBlocking that is required in addition to webRequest if you want to use blocking request handlers. BUG=60101 TEST=no Review URL: http://codereview.chromium.org/8662010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112181 0039d316-1c4b-4281-b951-d872f2087c98
* This is a checkpoint commit for experimental.socket. Limitations:miket@chromium.org2011-11-281-0/+13
| | | | | | | | | | | | | | | | | | - It's UDP-only. - It has only APIs for UDP sending, as well as some concepts of TCP connection. It has nothing related to receiving data. - It does no actual work, instead returning "42" as the new socket ID. So why bother checking this in? As stated above, it's getting large for a single review, and I'd like to start the process of getting feedback on these APIs. +asargent to review changes to test utilities BUG=none TEST=Added several unit and functional tests. Review URL: http://codereview.chromium.org/8590038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111800 0039d316-1c4b-4281-b951-d872f2087c98
* Moving the MHTML API out of experimental and renaming it.jcivelli@chromium.org2011-11-281-0/+2
| | | | | | | | | | | | Moving the savePageAsMTML API out of experimental and renaming it per Kathy suggestion to pageCapture.saveAsMhtml. BUG=None TEST=The API should still work. Review URL: http://codereview.chromium.org/8682013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111678 0039d316-1c4b-4281-b951-d872f2087c98
* Remove unused kDefault permission.jstritar@chromium.org2011-11-221-3/+0
| | | | | | | | | | BUG=none TEST=existing Review URL: http://codereview.chromium.org/8637019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111232 0039d316-1c4b-4281-b951-d872f2087c98
* Moving experimental.metrics API to metricsPrivatekaznacheev@chromium.org2011-11-221-0/+1
| | | | | | | | | | | | | | 1. experimental.metrics is now metricsPrivate 2. metricsPrivate is available to component extensions only 3. removed getEnabled/setEnabled functions as useless/harmful. BUG= TEST= Review URL: http://codereview.chromium.org/8548013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111136 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded forward declarations from various chrome ↵thestig@chromium.org2011-11-141-1/+0
| | | | | | | | | | | subdirectories. BUG=none TEST=none Review URL: http://codereview.chromium.org/8491036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109951 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 105661 - Revert 105659 - Delay network requests on startup if any ↵pam@chromium.org2011-10-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webRequest or webNavigation extensions are enabled. [Relanding 105659. This will re-cause failures in chrome_frame_net_tests, to be fixed in the next CL.] Add a webRequest extension API permission, used to tell when an extension uses that API and therefore wants to delay startup. Use the "tabs" warning for it. Also clean up the UserScriptListener, which never released requests individually and so doesn't need to track them individually either, and makes the RequestQueue handle bulk releases by its delegates instead. BUG=99450 TEST=unit_tests.exe --gtest_filter=NetworkDelayListenerTest.* Review URL: http://codereview.chromium.org/8205001 TBR=pam@chromium.org Review URL: http://codereview.chromium.org/8296017 TBR=pam@chromium.org Review URL: http://codereview.chromium.org/8308003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105686 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 105659 - Delay network requests on startup if any webRequest or ↵pam@chromium.org2011-10-151-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | webNavigation extensions are enabled. [Failures in chrome_frame tests] Add a webRequest extension API permission, used to tell when an extension uses that API and therefore wants to delay startup. Use the "tabs" warning for it. Also clean up the UserScriptListener, which never released requests individually and so doesn't need to track them individually either, and makes the RequestQueue handle bulk releases by its delegates instead. BUG=99450 TEST=unit_tests.exe --gtest_filter=NetworkDelayListenerTest.* Review URL: http://codereview.chromium.org/8205001 TBR=pam@chromium.org Review URL: http://codereview.chromium.org/8296017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105661 0039d316-1c4b-4281-b951-d872f2087c98
* Delay network requests on startup if any webRequest or webNavigation ↵pam@chromium.org2011-10-151-0/+1
| | | | | | | | | | | | | | | | | extensions are enabled. Add a webRequest extension API permission, used to tell when an extension uses that API and therefore wants to delay startup. Use the "tabs" warning for it. Also clean up the UserScriptListener, which never released requests individually and so doesn't need to track them individually either, and makes the RequestQueue handle bulk releases by its delegates instead. BUG=99450 TEST=unit_tests.exe --gtest_filter=NetworkDelayListenerTest.* Review URL: http://codereview.chromium.org/8205001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105659 0039d316-1c4b-4281-b951-d872f2087c98
* Move contentSettings extension API out of experimentalbauerb@chromium.org2011-10-131-0/+1
| | | | | | | | | BUG=71067 TEST=none Review URL: http://codereview.chromium.org/8071025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105301 0039d316-1c4b-4281-b951-d872f2087c98
* Do not guard the permissions API with a permission.jstritar@chromium.org2011-10-111-1/+0
| | | | | | | | | | BUG=99208 TEST=*OptionalPermissions* Review URL: http://codereview.chromium.org/8218012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104907 0039d316-1c4b-4281-b951-d872f2087c98
* Move webNavigation out of experimental.jochen@chromium.org2011-10-011-0/+1
| | | | | | | | | | BUG=60100 TEST=none Review URL: http://codereview.chromium.org/8101004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@103632 0039d316-1c4b-4281-b951-d872f2087c98
* Expose privacy-relevant preferences in Chrome's extension APIs.mkwst@chromium.org2011-08-261-6/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adds a `privacy` permission to hold toggles for features that a) send information to external services (google or otherwise), b) send information to first-party websites, and c) effect Chrome's handling of the network in general. (Metrics are still a TODO). * privacy * network * networkPredictionEnabled (ChromeSetting) * services * alternateErrorPagesEnabled (ChromeSetting) * autofillEnabled (ChromeSetting) * instantEnabled (ChromeSetting) * safeBrowsingEnabled (ChromeSetting) * searchSuggestEnabled (ChromeSetting) * translateEnabled (ChromeSetting) * websites * blockThirdPartyCookies (ChromeSetting) * hyperlinkAuditingEnabled (ChromeSetting) * referrersEnabled (ChromeSetting) BUG=88030,55059,54853 TEST=browser_tests Review URL: http://codereview.chromium.org/7298005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98396 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: base/scoped_ptr.h -> base/memory/scoped_ptr.h. (part 4)thestig@chromium.org2011-08-181-2/+2
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/7670016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97286 0039d316-1c4b-4281-b951-d872f2087c98
* Do not display warnings for file:/// extension permissions.jstritar@chromium.org2011-08-081-1/+3
| | | | | | | | | BUG=none TEST=ExtensionPermissionSetTest.GetDistinctHostsForDisplay Review URL: http://codereview.chromium.org/7582017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95817 0039d316-1c4b-4281-b951-d872f2087c98
* Register extension permissions with flags rather than bools.jstritar@chromium.org2011-07-281-37/+43
| | | | | | | | | | BUG=90266 TEST=*Extension* Review URL: http://codereview.chromium.org/7497017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94399 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land the experimental permissions API for extensions.jstritar@chromium.org2011-07-271-1/+23
| | | | | | | | | | | | | The permissions API lets extensions specify optional permissions in their manifest that they can request at run-time. It currently supports API permissions through a white-list. Host permissions will come later. This also fixes some clang errors from the previous attempt. BUG=48119, 70466, 84507 TEST=*Extension* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94288 Review URL: http://codereview.chromium.org/7432006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94326 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 94288 - Add an experimental permissions API for extensions.jstritar@chromium.org2011-07-271-23/+1
| | | | | | | | | | | | | The permissions API lets extensions specify optional permissions in their manifest that they can request at run-time. It currently supports API permissions through a white-list. Host permissions will come later. BUG=48119, 70466, 84507 TEST=*Extension* Review URL: http://codereview.chromium.org/7432006 TBR=jstritar@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94289 0039d316-1c4b-4281-b951-d872f2087c98
* Add an experimental permissions API for extensions.jstritar@chromium.org2011-07-271-1/+23
| | | | | | | | | | | The permissions API lets extensions specify optional permissions in their manifest that they can request at run-time. It currently supports API permissions through a white-list. Host permissions will come later. BUG=48119, 70466, 84507 TEST=*Extension* Review URL: http://codereview.chromium.org/7432006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94288 0039d316-1c4b-4281-b951-d872f2087c98
* Move the tts and ttsEngine APIs out of experimental, and givedmazzoni@chromium.org2011-07-201-0/+3
| | | | | | | | | | | | | | them new explicit permissions and install warning messages. Also change the hidden event ttsEngine.onEvent to tts.onEvent, which is where it belongs because it's sent to clients who call tts.speak and has nothing to do with engines. BUG=none TEST=none Review URL: http://codereview.chromium.org/7258007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@93232 0039d316-1c4b-4281-b951-d872f2087c98
* Adds extension API for getting/observing input method.altimofeev@chromium.org2011-07-141-1/+2
| | | | | | | | | | | API includes async input method getter and onChange event. BUG=chromium-os:16735 TEST=InputMethodApiBasic browser_test Review URL: http://codereview.chromium.org/7311005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92493 0039d316-1c4b-4281-b951-d872f2087c98
* Update URLPatternSet to contain a std::set instead of std::vector.jstritar@chromium.org2011-07-131-4/+4
| | | | | | | | | | | This updates URLPatternSet to contain a std::set instead of a std::vector, making it easier to implement the set operations in ExtensionPermissionSet. BUG=84507 TEST=unit_tests Review URL: http://codereview.chromium.org/7347011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92364 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land change 7253001.sanjeevr@chromium.org2011-07-131-0/+1
| | | | | | | | | | | | | This change was reverted in r90547 due to unrelated test failures. BUG=None TEST=Unit-tests. Review URL: http://codereview.chromium.org/7348001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92317 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 92219 - Update URLPatternSet to contain a std::set instead of ↵jstritar@chromium.org2011-07-121-4/+4
| | | | | | | | | | | | | | | | | std::vector. This updates URLPatternSet to contain a std::set instead of a std::vector, making it easier to implement the set operations in ExtensionPermissionSet. BUG=84507 TEST=unit_tests Review URL: http://codereview.chromium.org/7347011 TBR=jstritar@chromium.org Review URL: http://codereview.chromium.org/7346019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92224 0039d316-1c4b-4281-b951-d872f2087c98
* Update URLPatternSet to contain a std::set instead of std::vector.jstritar@chromium.org2011-07-121-4/+4
| | | | | | | | | | | | This updates URLPatternSet to contain a std::set instead of a std::vector, making it easier to implement the set operations in ExtensionPermissionSet. BUG=84507 TEST=unit_tests Review URL: http://codereview.chromium.org/7347011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92219 0039d316-1c4b-4281-b951-d872f2087c98
* Move base/values.h into the base namespace. This includes a cros DEPS rolldmazzoni@chromium.org2011-07-121-2/+0
| | | | | | | | | | with a minor change to that code since libcros also uses base/values.h. BUG=88666 TEST=none Review URL: http://codereview.chromium.org/7259019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92208 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 90496 - Probable cause of InstantTest.On[Change/Submit/Cancel]Event ↵rsleevi@chromium.org2011-06-271-1/+0
| | | | | | | | | | | | | | | | | | | failures. Added a private chromeAuthPrivate API. Ceated a component hosted app that uses this to set cloud print credentials. BUG=None TEST=Unit-tests Review URL: http://codereview.chromium.org/7253001 TBR=sanjeevr@chromium.org Review URL: http://codereview.chromium.org/7264016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90547 0039d316-1c4b-4281-b951-d872f2087c98
* Added a private chromeAuthPrivate API.sanjeevr@chromium.org2011-06-251-0/+1
| | | | | | | | | | | | | Ceated a component hosted app that uses this to set cloud print credentials. BUG=None TEST=Unit-tests Review URL: http://codereview.chromium.org/7253001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90496 0039d316-1c4b-4281-b951-d872f2087c98
* Start refractoring extension permissions into ExtensionPermissionSet.jstritar@chromium.org2011-06-231-0/+389
BUG=84507 TEST=*Extension* Review URL: http://codereview.chromium.org/7003098 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90244 0039d316-1c4b-4281-b951-d872f2087c98