summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions
Commit message (Collapse)AuthorAgeFilesLines
* Convert use of int ms to TimeDelta in files owned by brettw.tedvessenes@gmail.com2012-01-271-2/+2
| | | | | | | | | | BUG=108171 TEST= Review URL: http://codereview.chromium.org/9233018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119321 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: pass string by const-reftbreisacher@chromium.org2012-01-262-3/+5
| | | | | | | | | | | CID=102845 BUG=none TEST=none Review URL: http://codereview.chromium.org/9292001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119295 0039d316-1c4b-4281-b951-d872f2087c98
* Replace lazy-background switch with a manifest entry controlled by thempcomplete@chromium.org2012-01-242-7/+8
| | | | | | | | | | | extension. BUG=81752 TEST=no Review URL: https://chromiumcodereview.appspot.com/9233016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118784 0039d316-1c4b-4281-b951-d872f2087c98
* Take the Extension Storage API out of experimental:kalman@chromium.org2012-01-231-2/+2
| | | | | | | | | | | | | | | - 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
* Move operator<< for StringPiece into string_piece.{h,cc}akalin@chromium.org2012-01-201-1/+2
| | | | | | | | | BUG=110651 TEST= Review URL: https://chromiumcodereview.appspot.com/9159005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118416 0039d316-1c4b-4281-b951-d872f2087c98
* Split logic for defining custom types in schema_generated_bindings.js into ↵koz@chromium.org2012-01-181-0/+6
| | | | | | | | | | | | separate files. BUG=80310 TEST= Review URL: http://codereview.chromium.org/9179006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118070 0039d316-1c4b-4281-b951-d872f2087c98
* Extension cleanup: move devtools custom bindings out of ↵kalman@chromium.org2012-01-181-0/+2
| | | | | | | | | | | | schema_generated_bindings.js BUG=80310 TEST=browser_tests (win, mac, linux) Review URL: http://codereview.chromium.org/9212029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118019 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions cleanup: move the chromePrivate, extension, fileBrowserPrivate, andkalman@chromium.org2012-01-1714-295/+588
| | | | | | | | | | | | | | | | pageCapture APIs out of schema_generated_bindings.js. Also, since there would have been naming confusion otherwise, convert the fileBrowserHandler API stuff into the "custom bindings" infrastructure. BUG=80310 TEST=browser_tests (mac, win, linux, linux_chromeos) Review URL: http://codereview.chromium.org/9228002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117864 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 117824 - Convert use of int ms to TimeDelta in files owned by brettw.hbono@chromium.org2012-01-161-2/+2
| | | | | | | | | | | | | | | | | | | | This change broke Linux and Mac bots. I would recommend to ask committers to run your next change on trybots. (*1) http://chromegw.corp.google.com/i/chromium/builders/Mac/builds/10788/steps/compile/logs/stdio (*2) http://chromegw.corp.google.com/i/chromium/builders/Linux/builds/19313/steps/compile/logs/stdio (*3) http://chromegw.corp.google.com/i/chromium/builders/Linux%20x64/builds/21385/steps/compile/logs/stdio R=brettw@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9185026 TBR=tedvessenes@gmail.com Review URL: http://codereview.chromium.org/9215005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117825 0039d316-1c4b-4281-b951-d872f2087c98
* Convert use of int ms to TimeDelta in files owned by brettw.tedvessenes@gmail.com2012-01-161-2/+2
| | | | | | | | | | | R=brettw@chromium.org BUG=108171 TEST= Review URL: http://codereview.chromium.org/9185026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117824 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions cleanup: pull the browserAction and pageAction API customisationskalman@chromium.org2012-01-141-0/+4
| | | | | | | | | | | | | out of schema_generated_bindings. BUG=80310 TEST= Review URL: http://codereview.chromium.org/9203003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117765 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions cleanup: move tabs API cusomisations out of ↵kalman@chromium.org2012-01-138-32/+97
| | | | | | | | | | | | schema_generated_bindings. BUG=80310 TEST=browser_tests --gtest_filter=*Extension* Review URL: http://codereview.chromium.org/9121028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117617 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions cleanup: move a bunch of API customisations fromkalman@chromium.org2012-01-1214-77/+371
| | | | | | | | | | | | | | | | | | | schema_generated_bindings into their own files: * experimental.input.ime * experimental.socket * omnibox * pageActions * ttsEngine * tts * webRequest * windows BUG=80310 TEST= Review URL: http://codereview.chromium.org/9171001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117434 0039d316-1c4b-4281-b951-d872f2087c98
* Re-land r117016: Split out the contextMenus schema bindings from ↵kalman@chromium.org2012-01-127-26/+221
| | | | | | | | | | | | | | | schema_generated_bindings.js. This is safe to land again after r117398. TBR=aa@chromium.org BUG=80310 TEST= Review URL: http://codereview.chromium.org/9190036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117405 0039d316-1c4b-4281-b951-d872f2087c98
* Fixes an old crash in GetCurrentPageActions().aa@chromium.org2012-01-121-3/+2
| | | | | | | | | | | This was caused by a race between navigation to an extension URL and updating renderers about loaded extensions. BUG=91582 Review URL: http://codereview.chromium.org/9188029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117398 0039d316-1c4b-4281-b951-d872f2087c98
* Revert r117016 "Split out the contextMenus schema bindings from ↵maruel@chromium.org2012-01-107-218/+26
| | | | | | | | | | | | | | schema_generated_bindings.js." browser_tests: IsolatedAppTest.ProcessOverflow started to fail on Win7 Tests (dbg)(6) TBR=kalman@chromium.org BUG= TEST= Review URL: http://codereview.chromium.org/9168011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117032 0039d316-1c4b-4281-b951-d872f2087c98
* Split out the contextMenus schema bindings from schema_generated_bindings.js.kalman@chromium.org2012-01-107-26/+218
| | | | | | | | | BUG=80310 TEST= Review URL: http://codereview.chromium.org/9019006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117016 0039d316-1c4b-4281-b951-d872f2087c98
* Rip Out the Sidebar APIrdevlin.cronin@chromium.org2012-01-091-3/+3
| | | | | | | | | | | This fix removes the sidebar api and all its references from the code (primarily relating to chrome/common/extensions and chrome/browser/ui). BUG=107646 TEST=Covered by existing tests. Review URL: http://codereview.chromium.org/9006027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116901 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use browser windows for platform app shell windows.mihaip@chromium.org2012-01-091-0/+2
| | | | | | | | | | | | | | | | | This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. (reland of r116803, which got reverted with r116810 -- now builds on Chrome OS) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=116834 Review URL: http://codereview.chromium.org/8985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116855 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 116834 - Don't use browser windows for platform app shell windows.aa@chromium.org2012-01-081-2/+0
| | | | | | | | | | | | | | | | | | This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. (reland of r116803, which got reverted with r116810 -- now builds on Chrome OS) Review URL: http://codereview.chromium.org/8985008 TBR=mihaip@chromium.org Review URL: http://codereview.chromium.org/9142003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116842 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use browser windows for platform app shell windows.mihaip@chromium.org2012-01-071-0/+2
| | | | | | | | | | | | | | | This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. (reland of r116803, which got reverted with r116810 -- now builds on Chrome OS) Review URL: http://codereview.chromium.org/8985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116834 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 116803 - Don't use browser windows for platform app shell windows.sky@chromium.org2012-01-071-2/+0
| | | | | | | | | | | | | | | | | This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. Review URL: http://codereview.chromium.org/8985008 TBR=mihaip@chromium.org Review URL: http://codereview.chromium.org/9125021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116810 0039d316-1c4b-4281-b951-d872f2087c98
* Don't use browser windows for platform app shell windows.mihaip@chromium.org2012-01-071-0/+2
| | | | | | | | | | | | | | This frees platform apps from having to disable browser behaviors they don't want (e.g. keyboard shortcuts). Reverts part of r112378, which add a "shell" browser window type, and redoes part of r114162 to not depend on browser windows when checking if the context menu is being displayed for a platform app. Review URL: http://codereview.chromium.org/8985008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116803 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: Clean up (delete unnecessary, simplify use of) a couple of nativekalman@chromium.org2012-01-031-10/+1
| | | | | | | | | | | | | functions in schema_generated_bindings.js. BUG= TEST=browser_tests *Extensions* Review URL: http://codereview.chromium.org/9016046 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116121 0039d316-1c4b-4281-b951-d872f2087c98
* Add 'web_accessible_resource" keyword for version 2 extension manifests. ↵cdn@chromium.org2011-12-211-0/+18
| | | | | | | | | | This makes extension resources web accessible only when explicitly intended. Behavior is unaffected unless an extension specifies a manifest_version of 2 or more. BUG=46002 TEST=ExtensionResourceRequestPolicyTest.WebAccessibleResources Review URL: http://codereview.chromium.org/8849010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115401 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Fixing pass by value.dpapad@chromium.org2011-12-212-2/+2
| | | | | | | | | | | CID=101462, 101458, 101437, 101471, 101467 BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/9006023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115257 0039d316-1c4b-4281-b951-d872f2087c98
* Extensions: only inject the necessary extension API JSON into ↵kalman@chromium.org2011-12-211-16/+55
| | | | | | | | | | | 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
* Coverity fix: deferencing NULL pointerarthurhsu@chromium.org2011-12-211-0/+1
| | | | | | | | | | CID=102748 TEST=none Review URL: http://codereview.chromium.org/9011001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115236 0039d316-1c4b-4281-b951-d872f2087c98
* Split extension_api.json up into one json file for each api.koz@chromium.org2011-12-191-143/+0
| | | | | | | | BUG=80310 Review URL: http://codereview.chromium.org/8951005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114951 0039d316-1c4b-4281-b951-d872f2087c98
* Wire up onEvent and put it to use when UdpSocket::Write blocks.miket@chromium.org2011-12-151-0/+9
| | | | | | | | | | | | | | | | | | | | This is a checkpoint commit. It does the following: - if Write() blocks, calls onEvent() when the underlying socket finishes its work. - Demonstrates a working framework for sending events back to JS. It does NOT do any of the following: - Prove that the above statements are true. In order to cause a UDP socket to block, we pretty much have to mock it, and I determined that I'd have to refactor my Socket class to let me put in a ClientSocketFactory for testing, which will then let me work DelayedSocketData in net/socket/socket_test_util.h into the mix and simulate Write blockage. After discussion with Antony, we agreed to break up this work into this CL and then a refactor/mock CL, which I'm working on now. BUG=106802 TEST=none (see above). Review URL: http://codereview.chromium.org/8896013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114544 0039d316-1c4b-4281-b951-d872f2087c98
* Add world_id parameter to ExtensionDispatcher::AllowScriptExecution().koz@chromium.org2011-12-142-0/+14
| | | | | | | | | | | This is the first step in a double-sided patch to plumb this extra argument from webkit. BUG=80310 Review URL: http://codereview.chromium.org/8872053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114334 0039d316-1c4b-4281-b951-d872f2087c98
* Move/replace/rename URL-based extension getters from ExtensionService to/in ↵yoz@chromium.org2011-12-135-8/+15
| | | | | | | | | | | | | | | | ExtensionSet. ExtensionService::GetExtensionByURL -> GetByID with the host ExtensionService::GetExtensionByWebExtent -> GetHostedAppByURL GetByURL -> GetExtensionOrAppByURL BUG=104091 TEST=existing tests Review URL: http://codereview.chromium.org/8827013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114148 0039d316-1c4b-4281-b951-d872f2087c98
* Move the "extension" namespace from extension_api.json into ↵koz@chromium.org2011-12-094-7/+7
| | | | | | | | extension_api_extension.json. Review URL: http://codereview.chromium.org/8869003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113873 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113071 - Revert 113047 - Make ExtensionService use ExtensionSet.yoz@chromium.org2011-12-061-1/+1
| | | | | | | | | | | | | | | | | | | ExtensionManagementApiBrowserTest.LaunchApp fixed by r113141. Make ExtensionSet iterate like a set instead of a map. BUG=104091 TEST=existing tests Review URL: http://codereview.chromium.org/8733004 TBR=yoz@chromium.org Review URL: http://codereview.chromium.org/8789018 TBR=yoz@chromium.org Review URL: http://codereview.chromium.org/8822021 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113233 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113047 - Make ExtensionService use ExtensionSet.yoz@chromium.org2011-12-061-1/+1
| | | | | | | | | | | | | | | | It broke ExtensionManagementApiBrowserTest.LaunchApp. Make ExtensionSet iterate like a set instead of a map. BUG=104091 TEST=existing tests Review URL: http://codereview.chromium.org/8733004 TBR=yoz@chromium.org Review URL: http://codereview.chromium.org/8789018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113071 0039d316-1c4b-4281-b951-d872f2087c98
* Make ExtensionService use ExtensionSet.yoz@chromium.org2011-12-051-1/+1
| | | | | | | | | | | Make ExtensionSet iterate like a set instead of a map. BUG=104091 TEST=existing tests Review URL: http://codereview.chromium.org/8733004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113047 0039d316-1c4b-4281-b951-d872f2087c98
* Reland restrict extension features based on the extension type.jstritar@chromium.org2011-12-041-1/+2
| | | | | | | | | | | The "chrome_url_overrides" manifest key is now accessible by packaged apps. BUG=101992, 104103 TEST=existing, ManifestTest Review URL: http://codereview.chromium.org/8654001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112914 0039d316-1c4b-4281-b951-d872f2087c98
* Silently swallow exceptions in extension bindings callbacks.aa@chromium.org2011-12-031-9/+0
| | | | | | | | | | | | There are better ways to handle this, but I want a really simple patch for merge. BUG=106201 TEST=http://code.google.com/p/chromium/issues/detail?id=100401#c18 Review URL: http://codereview.chromium.org/8786008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112869 0039d316-1c4b-4281-b951-d872f2087c98
* Update includes to new header locations.abarth@chromium.org2011-12-038-13/+13
| | | | | | | TBR=darin Review URL: http://codereview.chromium.org/8784004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112826 0039d316-1c4b-4281-b951-d872f2087c98
* Revert "Restrict extension features based on the extension type."mpcomplete@chromium.org2011-12-021-2/+1
| | | | | | | | | | | | | | This breaks some ChromeOS tests. Among the log output: "Feature 'chrome_url_overrides' is not allowed in this type of manifest." Original review: http://codereview.chromium.org/8654001 BUG=101992, 104103, chromium-os:23709 TEST=no Review URL: http://codereview.chromium.org/8786004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112808 0039d316-1c4b-4281-b951-d872f2087c98
* Restrict extension features based on the extension type.jstritar@chromium.org2011-12-021-1/+2
| | | | | | | | | BUG=101992, 104103 TEST=existing, ManifestTest Review URL: http://codereview.chromium.org/8654001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112764 0039d316-1c4b-4281-b951-d872f2087c98
* Consider the origin when computing extension permissionsabarth@chromium.org2011-12-026-13/+23
| | | | | | | | | | | | This patch teaches the extension system to use the document's origin when computing extension permissions. Ideally, we'd use only the document's origin, but because app extents don't cover entire origins, we need to also consider the document's URL. BUG=103630 Review URL: http://codereview.chromium.org/8659009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112655 0039d316-1c4b-4281-b951-d872f2087c98
* Only create chromeHidden object when needed.aa@chromium.org2011-12-014-42/+56
| | | | | | | | | | | | | | | This was less useful than I thought it would be because we are purposely creating chromeHidden for web pages now, due to the chrome.app API. Also, move GetChromeHidden() to ChromeV8Context just because it makes more sense to me there. BUG=106014 Review URL: http://codereview.chromium.org/8761020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112540 0039d316-1c4b-4281-b951-d872f2087c98
* Be more careful when calling methods on chromeHidden. If chromeHidden didn't ↵aa@chromium.org2011-12-011-4/+10
| | | | | | | | | | | have the method before, it would stop the current stack because of an unhandled try/catch. BUG=100401 TEST=described in bug Review URL: http://codereview.chromium.org/8759018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112521 0039d316-1c4b-4281-b951-d872f2087c98
* Move view_types.h to view_type.h, since that's the standard name for enums.jam@chromium.org2011-12-013-3/+3
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/8760012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112365 0039d316-1c4b-4281-b951-d872f2087c98
* Delete the temporary file when generating MHTML with the extension API.jcivelli@chromium.org2011-11-221-0/+15
| | | | | | | | | | | | | We now delete the temporary file created when generating MHTML from the extension API. BUG=97489 TEST=The MHTML extension API should still work. Review URL: http://codereview.chromium.org/8530003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111180 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind() conversion for webkit.dcheng@chromium.org2011-11-221-3/+7
| | | | | | | | | | BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8550010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111060 0039d316-1c4b-4281-b951-d872f2087c98
* Add OVERRIDE to chrome/renderer.avi@chromium.org2011-11-213-11/+11
| | | | | | | | | BUG=104314 TEST=no change Review URL: http://codereview.chromium.org/8613004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110942 0039d316-1c4b-4281-b951-d872f2087c98
* base::Bind migrations in chrome/renderercsilv@chromium.org2011-11-172-8/+11
| | | | | | | BUG=none Review URL: http://codereview.chromium.org/8523037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110570 0039d316-1c4b-4281-b951-d872f2087c98
* Try to fix linux clobber compile.thakis@chromium.org2011-11-161-2/+4
| | | | | | | | | | BUG=none TEST=none TBR=thestig Review URL: http://codereview.chromium.org/8468030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@110222 0039d316-1c4b-4281-b951-d872f2087c98