summaryrefslogtreecommitdiffstats
path: root/content/browser/utility_process_host_impl.h
Commit message (Collapse)AuthorAgeFilesLines
* Creates a way to launch the utility process with elevated privileges on ↵haven@chromium.org2014-02-111-0/+9
| | | | | | | | | | | | Windows systems for the rare operations that require administrator access. IPCs to the utility process will be filtered when it is running elevated. BUG=331881 Review URL: https://codereview.chromium.org/98603007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@250409 0039d316-1c4b-4281-b951-d872f2087c98
* Remove EnableZygote API.jorgelo@chromium.org2013-11-051-5/+2
| | | | | | | | | | | | | EnableZygote exposes an implementation detail. The utility process already has a DisableSandbox method, and a SetExposedDir method that we can use to disable the zygote. BUG=None TEST=browser_tests, launch Chrome and install an extension. Review URL: https://codereview.chromium.org/55133005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@232906 0039d316-1c4b-4281-b951-d872f2087c98
* Move AlterEnvironment to base/environment.h, implement on Windows. This ↵brettw@chromium.org2013-08-301-2/+3
| | | | | | | | | | | | | re-implements the Posix version to be more like the Windows version and to share some parsing code. The new version will be somewhat slower due to some extra mallocs, but is shorter and more clear. I didn't want to implement a super optimized version on Windows, and the alternative would be to keep the new Windows version and the old Posix version in parallel which seemed less desirable. This changes the input from a vector to a map and just adds the map on the LaunchOptions rather than requiring the caller to set a pointer. This cleans up the callsites somewhat. BUG= R=viettrungluu@chromium.org Review URL: https://codereview.chromium.org/22750002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220608 0039d316-1c4b-4281-b951-d872f2087c98
* Set up content in-process main threads via factoryscottmg@chromium.org2013-08-161-4/+2
| | | | | | | | | | | | | | | | | | | | | | This code was previously #ifdef'd out based on CHROME_MULTIPLE_DLL. This works for chrome, but not for test targets which link content_browser. content_browser needs to not link against child-only targets (as they'll cause linking blink into the browser dll). Instead of having utility_process_host_impl, et al. own the in-process implementation, use a factory to create them that's installed in test code, and in chrome for supporting --single-process. At the same time, remove the global CHROME_MULTIPLE_DLL define and localize it to chrome_exe.gypi because it's too easy to use incorrectly. TBR=darin R=piman@chromium.org,jam@chromium.org BUG=237249 Review URL: https://chromiumcodereview.appspot.com/23235002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217968 0039d316-1c4b-4281-b951-d872f2087c98
* Cut some more dependencies from browser to child for multiple_dll modescottmg@chromium.org2013-07-231-0/+2
| | | | | | | | | | | Removes the in-process implementations for Gpu and Utility. R=jam@chromium.org, sky@chromium.org BUG=237249 Review URL: https://codereview.chromium.org/19502003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@213126 0039d316-1c4b-4281-b951-d872f2087c98
* Enable sandbox in local discovery utility process.vitalybuka@chromium.org2013-07-201-0/+4
| | | | | | | | | | Local discovery in sandbox works only on Windows, linux requires --no-sandbox. BUG=245391 Review URL: https://chromiumcodereview.appspot.com/19737002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@212781 0039d316-1c4b-4281-b951-d872f2087c98
* Make utility process run in-process when running in single-process mode.jam@chromium.org2013-07-091-0/+4
| | | | | | | | | | | Remove the unit test/single process code path for SandboxedUnpacker as a first step. BUG=19192 R=asargent@chromium.org, scottmg@chromium.org Review URL: https://codereview.chromium.org/18119009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210620 0039d316-1c4b-4281-b951-d872f2087c98
* Use base namespace for FilePath in content/browserbrettw@chromium.org2013-02-071-2/+2
| | | | | | Review URL: https://codereview.chromium.org/12213066 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181349 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove unneeded browser_thread.h includes in contents.thestig@chromium.org2013-01-031-0/+1
| | | | | | Review URL: https://chromiumcodereview.appspot.com/11618049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174922 0039d316-1c4b-4281-b951-d872f2087c98
* Expose ChildProcessData for the utility processcpu@chromium.org2012-12-191-0/+1
| | | | | | | | | | | | | | This is useful if you need to dup a single file into it instead of opening an entire directory. Safebrowsing can use this so the utility process can operate directly in the downloads folder. BUG=165030 TEST=none Review URL: https://codereview.chromium.org/11573070 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@173834 0039d316-1c4b-4281-b951-d872f2087c98
* Moved extension installation from FILE thread. CrxInstaller and friends are ↵zelidrag@chromium.org2012-11-151-2/+6
| | | | | | | | | | | now using their own sequenced task runner instead. BUG=160183 TEST=SandboxedUnpackerTest.*, ExtensionInstallUIBrowserTest.* Review URL: https://codereview.chromium.org/11369146 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167991 0039d316-1c4b-4281-b951-d872f2087c98
* Move the remaning files in content\common to the content namespace.jam@chromium.org2012-10-241-6/+9
| | | | | | Review URL: https://codereview.chromium.org/11235068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163732 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from contentajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10696166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
* Cleanup: Remove base::environment_vector and ↵thestig@chromium.org2012-02-241-5/+5
| | | | | | | | | | | base::file_handle_mapping_vector to StudlyCaps. BUG=none TEST=none Review URL: http://codereview.chromium.org/9429039 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@123438 0039d316-1c4b-4281-b951-d872f2087c98
* Create an API around UtilityProcessHost and use that from chrome.jam@chromium.org2012-02-031-0/+78
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