summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/features/api_feature.cc
Commit message (Collapse)AuthorAgeFilesLines
* Move core features code to //extensionsrockot@chromium.org2014-04-031-37/+0
| | | | | | | | | | | | | BUG=359618 TBR=kalman@chromium.org *extensions* TBR=hubbe@chromium.org tab_capture, cast_streaming TBR=scheib@chromium.org app_current_window_internal TBR=hongbo.min@intel.com system_cpu TBR=bauerb@chromium.org content_settings Review URL: https://codereview.chromium.org/224163002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261579 0039d316-1c4b-4281-b951-d872f2087c98
* Enable _api_features.json to block APIs from service worker contexts.scheib@chromium.org2014-04-011-3/+8
| | | | | | | | | | | A new property blocked_in_service_worker is parsed from features and exposed via IsBlockedInServiceWorker(). BUG=350009 Review URL: https://codereview.chromium.org/217163003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260716 0039d316-1c4b-4281-b951-d872f2087c98
* Make chrome/common and chrome/renderer use base namespace for Value.brettw@chromium.org2013-06-181-1/+1
| | | | | | | | R=avi@chromium.org Review URL: https://codereview.chromium.org/16923013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207076 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193020 Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193040 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Rewrite std::string("") to std::string(), Linux edition."dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | This reverts commit e59558b78e8c6a1b0bd916a724724b638c3c91b6. Revert "Fix build after r193020." This reverts commit 558a35897f6b3ffbcaefde927c1f150b815d140a. Revert "Really fix build after r193020." This reverts commit e3748a79b523a8d365d4a33ef986eebb4186fa78. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193030 0039d316-1c4b-4281-b951-d872f2087c98
* Rewrite std::string("") to std::string(), Linux edition.dcheng@chromium.org2013-04-091-1/+1
| | | | | | | | | | | | | | | | | This patch was generated by running the empty_string clang tool across the Chromium Linux compilation database. Implicitly or explicitly constructing std::string() with a "" argument is inefficient as the caller needs to emit extra instructions to pass an argument, and the constructor needlessly copies a byte into internal storage. Rewriting these instances to simply call the default constructor appears to save ~14-18 kilobytes on an optimized release build. BUG=none Review URL: https://codereview.chromium.org/13145003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193020 0039d316-1c4b-4281-b951-d872f2087c98
* Remove internal APIs from the chrome objectcduvall@chromium.org2013-04-031-1/+7
| | | | | | | | | | | | Internal APIs like webRequestInternal were showing up on the chrome object. This patch prevents that from happening, and adds a new "internal" field to _api_features.json. BUG=120070, 55316 Review URL: https://chromiumcodereview.appspot.com/13097012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191984 0039d316-1c4b-4281-b951-d872f2087c98
* Implement API features for the Extension API feature systemcduvall@chromium.org2013-03-281-0/+26
| | | | | | | | | | | | | | | | | | Now features can be declared in the _api_features.json file, and dependencies of the form "api:<api_name>" will refer to these features. This patch also prevents schemas for APIs using the feature system from being loaded when calling ExtensionAPI::IsAvailable(). TBR=ben@chromium.org BUG=55316, 120070, 224206 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=190836 Review URL: https://chromiumcodereview.appspot.com/12846011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191133 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 190836 "Implement API features for the Extension API feat..."eugenis@chromium.org2013-03-271-26/+0
| | | | | | | | | | | | | | | | | | | | | | | | | Multiple leaks on the memory waterfall. BUG=224206 > Implement API features for the Extension API feature system > > Now features can be declared in the _api_features.json file, and dependencies > of the form "api:<api_name>" will refer to these features. > > This patch also prevents schemas for APIs using the feature system from being > loaded when calling ExtensionAPI::IsAvailable(). > > TBR=ben@chromium.org > BUG=55316, 120070 > > > Review URL: https://chromiumcodereview.appspot.com/12846011 TBR=cduvall@chromium.org Review URL: https://codereview.chromium.org/12770020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190862 0039d316-1c4b-4281-b951-d872f2087c98
* Implement API features for the Extension API feature systemcduvall@chromium.org2013-03-271-0/+26
Now features can be declared in the _api_features.json file, and dependencies of the form "api:<api_name>" will refer to these features. This patch also prevents schemas for APIs using the feature system from being loaded when calling ExtensionAPI::IsAvailable(). TBR=ben@chromium.org BUG=55316, 120070 Review URL: https://chromiumcodereview.appspot.com/12846011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190836 0039d316-1c4b-4281-b951-d872f2087c98