summaryrefslogtreecommitdiffstats
path: root/content/browser/plugin_loader_posix.cc
Commit message (Collapse)AuthorAgeFilesLines
* PluginLoader loads plugins again after last load completeshclam@chromium.org2012-03-121-6/+14
| | | | | | | | | | | | | | | | | | If the list of plugins has updated before PluginLoader gets a request to load plugins it occasionally fails to load the entire list. This happens when PluginLoader is serving the last plugin load request. To make sure PluginLoader is up-to-date with the latest plugin list all plugin load requests are served. BUG=117561 TEST=content_unittests --gtest_filter=PluginLoader* R=rsesek Review URL: http://codereview.chromium.org/9665017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126250 0039d316-1c4b-4281-b951-d872f2087c98
* Create an API around UtilityProcessHost and use that from chrome.jam@chromium.org2012-02-031-4/+6
| | | | | | | BUG=98716 Review URL: https://chromiumcodereview.appspot.com/9317074 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120342 0039d316-1c4b-4281-b951-d872f2087c98
* PluginLoaderPosix: Fix the case where the utility process crashes after all ↵jhawkins@chromium.org2012-02-011-2/+8
| | | | | | | | | | | | | | plugins have been loaded. This was causing a crash on load on my system. BUG=111935 TEST=none R=rsesek Review URL: https://chromiumcodereview.appspot.com/9297049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@120098 0039d316-1c4b-4281-b951-d872f2087c98
* A few clients of the utility process had a race condition that could lead to ↵dgrogan@chromium.org2012-01-271-5/+7
| | | | | | | | | | | | | | a browser crash if the utility process crashed. IndexedDB was the worst offender. WebstoreInstallHelper, the profile importer, and posix plugin loader were also affected. As a side effect, NaClProcessHost and GpuProcessHost are now notified when their respective processes are killed and treat such an occurrence as a crash. BUG=108871 TEST= Review URL: http://codereview.chromium.org/9235052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@119340 0039d316-1c4b-4281-b951-d872f2087c98
* Rename PluginService to PluginServiceImpl.jam@chromium.org2011-12-211-5/+6
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/9019004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115279 0039d316-1c4b-4281-b951-d872f2087c98
* Create an API around PluginService and use it from Chrome.jam@chromium.org2011-12-211-3/+3
| | | | | | | BUG=98716 Review URL: http://codereview.chromium.org/9006036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115259 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize member variables.jhawkins@chromium.org2011-12-201-1/+2
| | | | | | | | | | | | | CID=100356,100360,100368,100373,100374,100562,101529,101530,101536,101541, 101542,101595,101630,101685,101687,101689,101776,101812,101813,101854, 101861,101862,101871,101883,101886,101887,102034 BUG=none TEST=none R=binji Review URL: http://codereview.chromium.org/8965054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115225 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 113027 - Zygote most of the uses of the utility process on Linuxdbeam@chromium.org2011-12-061-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | Allow the user of the utility process to specify whether the zygote should be used on Linux. This allows to sandbox all the uses of the utility process that don't do FS access, which right now are all except extension unpacking and NPAPI plugin listing. This is the first step to get the utility process sandboxed on Linux. Since most of the uses of the utility process don't do file access, launching all of those from the zygote will simplify sandboxing the one that does: extension unpacking. BUG=93109 TEST=Try installing an extension from the web store. Review URL: http://codereview.chromium.org/8770025 TBR=jorgelo@chromium.org Review URL: http://codereview.chromium.org/8817013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113165 0039d316-1c4b-4281-b951-d872f2087c98
* Zygote most of the uses of the utility process on Linuxjorgelo@chromium.org2011-12-051-0/+1
| | | | | | | | | | | | | | | | | | | | | Allow the user of the utility process to specify whether the zygote should be used on Linux. This allows to sandbox all the uses of the utility process that don't do FS access, which right now are all except extension unpacking and NPAPI plugin listing. This is the first step to get the utility process sandboxed on Linux. Since most of the uses of the utility process don't do file access, launching all of those from the zygote will simplify sandboxing the one that does: extension unpacking. BUG=93109 TEST=Try installing an extension from the web store. Review URL: http://codereview.chromium.org/8770025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113027 0039d316-1c4b-4281-b951-d872f2087c98
* Make ChildProcessHost be used through an interface in content/public, ↵jam@chromium.org2011-12-031-1/+2
| | | | | | | | | instead of by inheritence. BUG=98716 Review URL: http://codereview.chromium.org/8787004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112878 0039d316-1c4b-4281-b951-d872f2087c98
* Don't make classes derive from ChildProcessHost, and instead have them use ↵jam@chromium.org2011-12-021-0/+1
| | | | | | | | | it through composition. This cleans up the code and makes it easier to understand (as well as more closely conform to the Google C++ style guide). It also makes it possible to add an interface around ChildProcessHost in a future change. BUG=98716 Review URL: http://codereview.chromium.org/8774040 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112769 0039d316-1c4b-4281-b951-d872f2087c98
* Refactor PluginService to take PluginList as a dependency.rsesek@chromium.org2011-11-101-4/+4
| | | | | | | | | | | Also creates MockPluginService for use in tests. BUG=103788,chromium-os:22447 TEST=none Review URL: http://codereview.chromium.org/8493019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109532 0039d316-1c4b-4281-b951-d872f2087c98
* uint32_t -> uint32 in content/browser/plugin_loader_posix.* and include ↵viettrungluu@chromium.org2011-11-091-2/+2
| | | | | | | | | | | basictypes.h. The header file currently doesn't compile on Windows (unless a definition for uint32_t is picked up from elsewhere, coincidentally). Review URL: http://codereview.chromium.org/8511034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109329 0039d316-1c4b-4281-b951-d872f2087c98
* Send the index in the canonical list over IPC when using the OOP plugin loader.rsesek@chromium.org2011-11-021-6/+8
| | | | | | | | | | | | Comparing paths does not work all the time on Linux if the plugin is wrapped and is initially loaded from a symlinked location. BUG=17863 TEST=Waterfall Linux(dbg)(2) plugin_tests Review URL: http://codereview.chromium.org/8440042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108306 0039d316-1c4b-4281-b951-d872f2087c98
* [Linux] Load plugins out-of-process.rsesek@chromium.org2011-11-021-4/+12
| | | | | | | | | | | | | | | This also fixes a bug in PluginLoaderPosix where if the last N plugins in the canonical list crash, the callbacks are never run. BUG=17863 TEST=On Linux, plugins work as before. Originally Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106962 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=106977 Review URL: http://codereview.chromium.org/8372015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108286 0039d316-1c4b-4281-b951-d872f2087c98
* Move BrowserThread to content namespace.joi@chromium.org2011-11-021-0/+1
| | | | | | | | | TBR=owners BUG=98716 Review URL: http://codereview.chromium.org/8437002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@108270 0039d316-1c4b-4281-b951-d872f2087c98
* Split BrowserThread into public API and private implementation, step 1.joi@chromium.org2011-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | Only content/ now has the ability to create BrowserThread objects, with the exception that tests can create the content::TestBrowserThread subclass, and (temporarily) code in chrome/ can create the DeprecatedBrowserThread subclass. A follow-up change will make content/ take care of its own thread creation, remove DeprecatedBrowserThread, and move all state and non-trivial constructors from BrowserThread down to BrowserThreadImpl. Also moved BrowserProcessSubThread into content/ namespace. As part of follow-up cleanup, chrome/ will stop using this class. BUG=98716 TEST=existing Review URL: http://codereview.chromium.org/8392042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107718 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 106962 - Broke plugin_tests - [Linux] Load plugins out-of-process.rsesek@chromium.org2011-10-241-12/+4
| | | | | | | | | | | | | | | | This also fixes a bug in PluginLoaderPosix where if the last N plugins in the canonical list crash, the callbacks are never run. BUG=17863 TEST=On Linux, plugins work as before. Review URL: http://codereview.chromium.org/8372015 TBR=rsesek@chromium.org Review URL: http://codereview.chromium.org/8351014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106977 0039d316-1c4b-4281-b951-d872f2087c98
* [Linux] Load plugins out-of-process.rsesek@chromium.org2011-10-241-4/+12
| | | | | | | | | | | | | This also fixes a bug in PluginLoaderPosix where if the last N plugins in the canonical list crash, the callbacks are never run. BUG=17863 TEST=On Linux, plugins work as before. Review URL: http://codereview.chromium.org/8372015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106962 0039d316-1c4b-4281-b951-d872f2087c98
* Gracefully handle child process death in out-of-process plugin loading.rsesek@chromium.org2011-10-211-38/+127
| | | | | | | | | | | This also queues requests to load plugins, based on http://codereview.chromium.org/8243010/. BUG=100053 TEST=Install Sonix webcam driver on OS X Lion and try to load a Flash video. It plays. Review URL: http://codereview.chromium.org/8318028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106738 0039d316-1c4b-4281-b951-d872f2087c98
* Move PluginLoaderClient to PluginLoaderPosix in its own file.rsesek@chromium.org2011-10-181-0/+77
BUG=none TEST=none Review URL: http://codereview.chromium.org/8334004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106003 0039d316-1c4b-4281-b951-d872f2087c98