diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 03:44:44 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-29 03:44:44 +0000 |
commit | badf5cf5f14c65f6c799ef1fec77cde8351339c2 (patch) | |
tree | 83690887c035e4b457f00404f126f95ad1a90c06 /sandbox | |
parent | 8cc9738eff9c169487e8356947d88640659fc497 (diff) | |
download | chromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.zip chromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.tar.gz chromium_src-badf5cf5f14c65f6c799ef1fec77cde8351339c2.tar.bz2 |
Expose the sandbox related code through the content API. I did a bit of cleanup while I was doing this.
-got rid of SandboxInitWrapper, since I didn't see a need to expose given that we can just expose sandbox::SandboxInterfaceInfo
-got rid of the duplicated code to initialize the broker
-since I made MainFunctionParams only have the sandbox struct on Windows, I also made the mac specific auto release pool behind an ifdef as well. It seemed odd to make something so mac specific compile on all platforms to save some #ifdefs.
BUG=98716
Review URL: http://codereview.chromium.org/8414020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107863 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox')
-rw-r--r-- | sandbox/src/sandbox_types.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/sandbox/src/sandbox_types.h b/sandbox/src/sandbox_types.h index dee1838..ce9b767 100644 --- a/sandbox/src/sandbox_types.h +++ b/sandbox/src/sandbox_types.h @@ -51,16 +51,11 @@ enum TerminationCodes { SBOX_FATAL_CLOSEHANDLES = 7010 // Failed to close pending handles. }; -class TargetServices; class BrokerServices; +class TargetServices; -// Contains the pointer to a target or broker service. Older code used -// a union so the |legacy| member is there for us to detect we are -// being passed a SandboxInterfaceInfo by old code. If legacy is not -// null it means we are dealing with old code a must copy this value -// into both |broker_services| and |target_services|. +// Contains the pointer to a target or broker service. struct SandboxInterfaceInfo { - void* legacy; BrokerServices* broker_services; TargetServices* target_services; }; |