Chromium Code Reviews| Index: sandbox/src/sandbox_types.h |
| =================================================================== |
| --- sandbox/src/sandbox_types.h (revision 75565) |
| +++ sandbox/src/sandbox_types.h (working copy) |
| @@ -53,10 +53,15 @@ |
| class TargetServices; |
| class BrokerServices; |
| -// Contains the pointer to a target or broker service. |
| +// 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|. |
| struct SandboxInterfaceInfo { |
| + void* legacy; |
|
amit
2011/02/25 21:31:04
nit: why not have the exact same union as 'legacy'
|
| + BrokerServices* broker_services; |
| TargetServices* target_services; |
| - BrokerServices* broker_services; |
| }; |
| #if SANDBOX_EXPORTS |