From 126720dd09a08ae7391568fe19f403a050be0627 Mon Sep 17 00:00:00 2001 From: "cpu@google.com" Date: Thu, 18 Sep 2008 01:45:09 +0000 Subject: back out my sbox change TBR=nsylvain Review URL: http://codereview.chromium.org/3132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2353 0039d316-1c4b-4281-b951-d872f2087c98 --- sandbox/src/interception_agent.h | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'sandbox/src/interception_agent.h') diff --git a/sandbox/src/interception_agent.h b/sandbox/src/interception_agent.h index b33d6d3..5fd9f1f 100644 --- a/sandbox/src/interception_agent.h +++ b/sandbox/src/interception_agent.h @@ -23,12 +23,10 @@ struct DllPatchInfo; class ResolverThunk; // The InterceptionAgent executes on the target application, and it is in charge -// of setting up the desired interceptions or indicating what module needs to -// be unloaded. +// of setting up the desired interceptions. // -// The exposed API consists of three methods: GetInterceptionAgent to retrieve -// the single class instance, OnDllLoad and OnDllUnload to process a dll being -// loaded and unloaded respectively. +// The exposed API consists of two methods: GetInterceptionAgent to retrieve the +// single class instance, and OnDllLoad to process a dll being loaded. // // This class assumes that it will get called for every dll being loaded, // starting with kernel32, so the singleton will be instantiated from within the @@ -39,14 +37,12 @@ class InterceptionAgent { static InterceptionAgent* GetInterceptionAgent(); // This method should be invoked whenever a new dll is loaded to perform the - // required patches. If the return value is false, this dll should not be - // allowed to load. - // + // required patches. // full_path is the (optional) full name of the module being loaded and name // is the internal module name. If full_path is provided, it will be used // before the internal name to determine if we care about this dll. - bool OnDllLoad(const UNICODE_STRING* full_path, const UNICODE_STRING* name, - uint32 image_flags, void* base_address); + void OnDllLoad(const UNICODE_STRING* full_path, const UNICODE_STRING* name, + void* base_address); // Performs cleanup when a dll is unloaded. void OnDllUnload(void* base_address); -- cgit v1.1