summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Move extension messages to their own file and add a RenderViewObserver to ↵jam@chromium.org2011-03-284-3/+432
| | | | | | | | | start moving the extension code out of RenderView. TBR=aa Review URL: http://codereview.chromium.org/6735004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79561 0039d316-1c4b-4281-b951-d872f2087c98
* Move some files from base to base/memory.levin@chromium.org2011-03-2820-42/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | raw_scoped_refptr_mismatch_checker.h ref_counted.cc ref_counted.h ref_counted_memory.cc ref_counted_memory.h ref_counted_unittest.cc scoped_callback_factory.h scoped_comptr_win.h scoped_handle.h scoped_native_library.cc scoped_native_library.h scoped_native_library_unittest.cc scoped_nsobject.h scoped_open_process.h scoped_ptr.h scoped_ptr_unittest.cc scoped_temp_dir.cc scoped_temp_dir.h scoped_temp_dir_unittest.cc scoped_vector.h singleton.h singleton_objc.h singleton_unittest.cc linked_ptr.h linked_ptr_unittest.cc weak_ptr.cc weak_ptr.h weak_ptr_unittest.cc BUG=None TEST=Compile Review URL: http://codereview.chromium.org/6714032 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79524 0039d316-1c4b-4281-b951-d872f2087c98
* Wired local file system support for File API. The local file system provider ↵zelidrag@chromium.org2011-03-254-3/+40
| | | | | | | | | | | | | | | currently exists for ChromeOS builds only. This CL exposes new extension permission 'fileSystem' that controls access to individual local file system elements from 3rd party extensions. Another new permission 'fileBrowserPrivate' controls access to following API call that retrieves root DOMFileSystem instance for locally exposed folders:  chrome.fileBrowserPrivate.requestLocalFileSystem(callback) BUG=chromium-os:11983 TEST=ExtensionApiTest.LocalFileSystem Review URL: http://codereview.chromium.org/6519040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79451 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Pass parameters by reference.jhawkins@chromium.org2011-03-241-1/+1
| | | | | | | | | | | | CID=14390,14587,14798,14825,14990,15376,15500,15654,15731,15777,15857 BUG=none TEST=none R=csilv@chromium.org Review URL: http://codereview.chromium.org/6696052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79319 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the timeStamp property from webRequest extension events.mpcomplete@chromium.org2011-03-242-420/+6
| | | | | | | | | BUG=60101 TEST=no Review URL: http://codereview.chromium.org/6696062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79314 0039d316-1c4b-4281-b951-d872f2087c98
* Renaming 'cognito' to 'regular'. Boring.battre@chromium.org2011-03-243-2/+2
| | | | | | | | | | BUG=77137 TEST=Look at the button's text in incognito mode? Are you bored? Good! Review URL: http://codereview.chromium.org/6723011 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79270 0039d316-1c4b-4281-b951-d872f2087c98
* Added extensions API to provide customization values.altimofeev@chromium.org2011-03-244-1/+42
| | | | | | | | | | | | This CL adds API that could be used only by component extensions. Currently, API only returns device's HWID. BUG=chromium-os:13076 TEST=browser_tests Review URL: http://codereview.chromium.org/6681038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79264 0039d316-1c4b-4281-b951-d872f2087c98
* Theme system cleanuperg@google.com2011-03-232-8/+8
| | | | | | | | | | | | | | | | | - Removes useless dependencies on themeing from content/ - Renames BrowserThemeProvider to ThemeService, along with name variants such as GtkThemeService. BrowserThemeProvider has grown by a lot to be more than an implementation of the ui::ThemeProvider interface. This change touches everything. - Rename theme_service.{h,cc} (which defined ThemeServiceFactory) to theme_service_factory.{h,cc}. BUG=77155 TEST=compiles. Review URL: http://codereview.chromium.org/6727005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79145 0039d316-1c4b-4281-b951-d872f2087c98
* Adding `cause` to the cookie extension API's onchanged event signature.jochen@chromium.org2011-03-233-11/+84
| | | | | | | | | | | | This makes it simpler for developers to deal with the release/set event pair generated by setting a cookie that already exists, and gives them more information about general cookie removal (e.g. that the cookie wasn't "removed" actively but expired). BUG=70101 TEST=net_unittests Review URL: http://codereview.chromium.org/6698023 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79113 0039d316-1c4b-4281-b951-d872f2087c98
* Move the rest of the content browser->renderer messages to content. Also ↵jam@chromium.org2011-03-231-1/+1
| | | | | | | | | move drag related messages to their own file. TBR=tsepez Review URL: http://codereview.chromium.org/6705012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79083 0039d316-1c4b-4281-b951-d872f2087c98
* Adjusting directory.py to generate JSON without line-ending whitespace.battre@chromium.org2011-03-222-1264/+1265
| | | | | | | | | | BUG=76656 TEST=Generate extension documentation. Check that samples.json doesn't end lines with whitespace. Review URL: http://codereview.chromium.org/6685085 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78976 0039d316-1c4b-4281-b951-d872f2087c98
* Sample extension demonstrating usage of the WebNavigation API.jochen@chromium.org2011-03-219-1/+681
| | | | | | | | | | BUG=62702 TEST=none Review URL: http://codereview.chromium.org/6602008 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78867 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: expose raw debugging protocol via extension API.pfeldman@chromium.org2011-03-178-1/+1521
| | | | | | | | | BUG= TEST= Review URL: http://codereview.chromium.org/6686051 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78593 0039d316-1c4b-4281-b951-d872f2087c98
* Fixing breaking bugs in the proxy sample extension.battre@chromium.org2011-03-1710-23/+24
| | | | | | | | | | | | | Moral of the story: never refactor. Second moral: run tests after refactoring. :) BUG=62700 TEST=The extension should function correctly. Review URL: http://codereview.chromium.org/6667073 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78534 0039d316-1c4b-4281-b951-d872f2087c98
* Added a sample Chrome Extension that uses the Tab Pinning API.smus@chromium.org2011-03-168-1/+127
| | | | | | | | | | | Enables a new keyboard shortcut (Ctrl + Shift + P) to toggle pinning and unpinning of the current tab. BUG=62699 TEST=None Review URL: http://codereview.chromium.org/6651004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78433 0039d316-1c4b-4281-b951-d872f2087c98
* fav icon -> favicon. Pass 11: rest of chrome/browser/uiavi@chromium.org2011-03-161-1/+1
| | | | | | | | | BUG=76073 TEST=none; no visible change Review URL: http://codereview.chromium.org/6698052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78360 0039d316-1c4b-4281-b951-d872f2087c98
* Add onChange event to preference extension APIs.bauerb@chromium.org2011-03-162-0/+327
| | | | | | | | | BUG=73994 TEST=TBD Review URL: http://codereview.chromium.org/6596044 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78354 0039d316-1c4b-4281-b951-d872f2087c98
* Remove executable permissions from experimental.html (build fix)caseq@google.com2011-03-161-0/+0
| | | | | | | | | BUG=none TEST=check_perms step of linux build passes TBR=markusheintz git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78348 0039d316-1c4b-4281-b951-d872f2087c98
* Exposing extension preferences via the `chrome.extension` API.bauerb@chromium.org2011-03-163-0/+434
| | | | | | | | | | | `chrome.extension.isAllowedIncognitoAccess` gives access to `chrome://extension`'s "Allowed in Incognito" checkbox's state, and `chrome.extension.isAllowedFileSchemeAccess` does the same for "Allow access to File URLs". Patch by Mike West <mkwst@google.com>. BUG=74694 TEST=Create an extension that checks whether 'Allow in Incognito' or 'Allow access to File URLs' is checked. It should work correctly. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78347 0039d316-1c4b-4281-b951-d872f2087c98
* Add experimental.webInspector.* to experimental.htmlcaseq@google.com2011-03-162-10/+31
| | | | | | | | | BUG=56660 TEST=experimental.html lists 3 experimental.webInspector modules Review URL: http://codereview.chromium.org/6679054/ git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78343 0039d316-1c4b-4281-b951-d872f2087c98
* Initial support for partitioning cookies for isolated apps.creis@google.com2011-03-155-1/+70
| | | | | | | | | | | | | | | | This CL adds experimental support for letting installed apps request isolated storage in their manifest. An isolated app will have its own cookie store that is not shared with other apps or normal pages, even if they share an origin. The feature is currently behind a --enable-experimental-app-manifests flag. BUG=69335 TEST=ExtensionManifestTest.IsolatedApps TEST=IsolatedAppApiTest.CookieIsolation* Review URL: http://codereview.chromium.org/6201005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78301 0039d316-1c4b-4281-b951-d872f2087c98
* Use PreferenceTransformerInterface in extension preference APIs.bauerb@chromium.org2011-03-151-5/+1
| | | | | | | | | | | This allows us to get rid of custom preference API functions for the proxy extension API. BUG=73994 TEST=ProxyApiTest.*:ExtensionApiTest.* Review URL: http://codereview.chromium.org/6683002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78197 0039d316-1c4b-4281-b951-d872f2087c98
* Sample extension demonstrating usage of the Proxy API.battre@chromium.org2011-03-1413-1/+3008
| | | | | | | | | | BUG=62700 TEST=Install extension, ensure that nothing explodes, change proxy settings, profit! Review URL: http://codereview.chromium.org/6538077 Patch from Mike West <mkwst@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78014 0039d316-1c4b-4281-b951-d872f2087c98
* extensions: generate extension id from path by using bytes directlyevan@chromium.org2011-03-092-1/+5
| | | | | | | | | | | Rather than converting to wstring and then back to UTF-8, just use the bytes we already have. BUG=69467 Review URL: http://codereview.chromium.org/6625065 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77519 0039d316-1c4b-4281-b951-d872f2087c98
* Add ability to find out whether an extension pref value is coming from ↵bauerb@chromium.org2011-03-092-6/+79
| | | | | | | | | | | | | | | incognito preferences. If the incognito flag in the request details is set, we now return an incognito parameter from experimental.preference.get that specifies whether the value is coming from the incognito preferences or the regular ones. Also, return an error if an extension that isn't enabled in incognito mode is trying to access incognito preferences. BUG=73994 TEST=ExtensionApiTest.* Review URL: http://codereview.chromium.org/6628081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77465 0039d316-1c4b-4281-b951-d872f2087c98
* Implement blocking for webRequest.onBeforeRequest extension event.mpcomplete@chromium.org2011-03-085-15/+103
| | | | | | | | | | | | | I did some measurements with a Release build of chrome, both manually and via the page cycler tests. It seems that a simple empty blocking event listener can add anywhere from a 1 to 30ms delay to request times, largely depending on how many requests are in the queue (when many requests come at once, the last ones to be processed by the extension are delayed the longest). From page cycler data (on my local machine), the average increase in page load time seems to be around 6ms. This is independent of total page load time (which makes sense). BUG=60101 TEST=covered by apitests Review URL: http://codereview.chromium.org/6574049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77339 0039d316-1c4b-4281-b951-d872f2087c98
* Update GetDistinctHost to prefer .com, .net, and .org when de-duping.tessamac@chromium.org2011-03-083-20/+144
| | | | | | | | | BUG=72732 TEST=trybot, unit_tests, permissions warning for https://chrome.google.com/extensions/detail/pjmjjdikcijaponjlhnibejonnjlfohg Review URL: http://codereview.chromium.org/6596085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77301 0039d316-1c4b-4281-b951-d872f2087c98
* Don't try to convert text/html URLs ending in .user.js.aa@chromium.org2011-03-052-11/+7
| | | | | | | | | | | | This doesn't solve the problem with view-source://, that is a separate issue. BUG=35795 TEST=manual, see bug. Review URL: http://codereview.chromium.org/6574033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77020 0039d316-1c4b-4281-b951-d872f2087c98
* Give a helpful warning message if a url patern contains a port.skerner@chromium.org2011-03-0416-141/+477
| | | | | | | | | BUG=32160 TEST=ExtensionURLPatternTest.Ports,ExtensionManifestTest.* Review URL: http://codereview.chromium.org/2835034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76967 0039d316-1c4b-4281-b951-d872f2087c98
* Change other usages of .size() to .empty() when applicable.erg@google.com2011-03-044-8/+8
| | | | | | | | | BUG=carnitas TEST=compiles Review URL: http://codereview.chromium.org/6609008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76962 0039d316-1c4b-4281-b951-d872f2087c98
* Return accessible icon URLs for disabled extensions in the management API.jstritar@chromium.org2011-03-042-2/+2
| | | | | | | | | BUG=60437 TEST=ExtensionManagementApiTest.Basics Review URL: http://codereview.chromium.org/6596112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76920 0039d316-1c4b-4281-b951-d872f2087c98
* Take out the is_content_filtered bool that gets passed around betwen ↵jam@chromium.org2011-03-043-14/+11
| | | | | | | | renderer/browser and WebKit, since it's not used anywhere. Review URL: http://codereview.chromium.org/6621006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76885 0039d316-1c4b-4281-b951-d872f2087c98
* Release notes for M10.kathyw@chromium.org2011-03-034-12/+54
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6609001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76837 0039d316-1c4b-4281-b951-d872f2087c98
* Fix TODOs: Get rid of ExtensionService::InstallExtension().skerner@chromium.org2011-03-032-0/+9
| | | | | | | | | | | Also use a single delete function when removing extension files. BUG=None TEST=ExtensionServiceTest.* Review URL: http://codereview.chromium.org/6596041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76752 0039d316-1c4b-4281-b951-d872f2087c98
* Update Chromium Search extension to use Chromium Verticalaa@chromium.org2011-03-035-7/+8
| | | | | | | | | | BUG=None TEST=Loaded extension, tried some searches. Review URL: http://codereview.chromium.org/6597084 Patch from Tessa MacDuff <tessamac@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76676 0039d316-1c4b-4281-b951-d872f2087c98
* Say that file: access requires user opt-in.kathyw@chromium.org2011-03-032-2/+16
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6576036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76674 0039d316-1c4b-4281-b951-d872f2087c98
* Document using chrome://flags to enable experimental APIs.kathyw@chromium.org2011-03-032-10/+36
| | | | | | | | | BUG=67889 TEST=none Review URL: http://codereview.chromium.org/6580031 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76673 0039d316-1c4b-4281-b951-d872f2087c98
* Rename the targetUrl parameter to url in webNavigation.onBeforeRetargetjochen@chromium.org2011-03-022-2/+2
| | | | | | | | | BUG=none TEST=browser tests Review URL: http://codereview.chromium.org/6597105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76634 0039d316-1c4b-4281-b951-d872f2087c98
* Pass webNavigation transitionQualifier as array instead of a stringjochen@chromium.org2011-03-022-5/+5
| | | | | | | | | BUG=none TEST=api tests Review URL: http://codereview.chromium.org/6592099 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76632 0039d316-1c4b-4281-b951-d872f2087c98
* wstring: remove some simple instances of ToWStringHackevan@chromium.org2011-03-022-8/+18
| | | | | | | | BUG=69467 Review URL: http://codereview.chromium.org/6588131 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76630 0039d316-1c4b-4281-b951-d872f2087c98
* Display disabled apps with grayed out images on the NTP. Call the re-enable ↵jstritar@chromium.org2011-03-021-0/+3
| | | | | | | | | | | logic when the user tries to launch the app. This also adds a chrome://extension-icon endpoint that provides easy access to extension and app icons. BUG=61270 TEST=ExtensionIconSourceTest.IconsLoaded Review URL: http://codereview.chromium.org/6495002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76579 0039d316-1c4b-4281-b951-d872f2087c98
* Pure pedantry: Replace all ".size() == 0" with ".empty()".erg@google.com2011-03-021-1/+1
| | | | | | | | | BUG=carnitas TEST=compiles; existing unit tests. Review URL: http://codereview.chromium.org/6602049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76467 0039d316-1c4b-4281-b951-d872f2087c98
* FilePath: add a convertor to ASCIIevan@chromium.org2011-03-011-4/+9
| | | | | | | | | This is needed for cases where we need to work with known-ASCII filenames, like locale paths. Review URL: http://codereview.chromium.org/6597075 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76426 0039d316-1c4b-4281-b951-d872f2087c98
* Reorganizing and updating the extensions FAQ.kurrik@chromium.org2011-03-012-230/+396
| | | | | | | | | | | | | | | | | | * Added a new section named "Capabilities" * Moved the "Can I..." questions to capabilities section. * Added several new (frequently asked) questions. Note that I've purposely left the IDs of questions the same even if they changed sections, in case someone has linked to or bookmarked existing questions. Going forward I'll label FAQ entries with a descriptive name, instead of an ID based off of the entry's section. BUG=None TEST=None Review URL: http://codereview.chromium.org/6480057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76317 0039d316-1c4b-4281-b951-d872f2087c98
* Add info about "background" permission (new for M10).kathyw@chromium.org2011-02-284-2/+80
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6574028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76274 0039d316-1c4b-4281-b951-d872f2087c98
* Adding homagpageUrl to the ExtensionInfo in the management API. asargent@chromium.org2011-02-2523-690/+762
| | | | | | | | | | | | | | | BUG=66578 TEST=Try the unit test, or install an app from the webstore and see the URL in the results to a call from getAll(). Contributed by paulkinlan@google.com Original codereview at: http://codereview.chromium.org/6573001/ Review URL: http://codereview.chromium.org/6588018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76112 0039d316-1c4b-4281-b951-d872f2087c98
* Remove RemoveCustomProxySettingsFunction as it is substituted by clear of ↵battre@chromium.org2011-02-253-98/+153
| | | | | | | | | | | preferences api BUG=73387 TEST=Execute Proxy Settings API tests (browser_tests --gtest_filter="ProxySettings*" Review URL: http://codereview.chromium.org/6574038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76031 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove a bunch of unneeded includes.thestig@chromium.org2011-02-241-1/+0
| | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/6580021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75964 0039d316-1c4b-4281-b951-d872f2087c98
* Added LevelOfControl to Preferences API's get() resultbattre@chromium.org2011-02-241-3/+14
| | | | | | | | | BUG=73427 TEST=./unit_tests --gtest_filter="PrefValueStoreTest.*" && ./unit_tests --gtest_filter="ExtensionPrefValueMapTest.*" && ./browser_tests --gtest_filter=ExtensionApiTest.IncognitoContentSettings && ./browser_tests --gtest_filter=ExtensionApiTest.ContentSettings Review URL: http://codereview.chromium.org/6542021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75947 0039d316-1c4b-4281-b951-d872f2087c98
* Fix typo in Message Passing sample code.kathyw@chromium.org2011-02-242-2/+2
| | | | | | | | | | | | I'll apply this change to all channels. TBR=aa BUG=72168 TEST=none Review URL: http://codereview.chromium.org/6574030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75894 0039d316-1c4b-4281-b951-d872f2087c98