summaryrefslogtreecommitdiffstats
path: root/sandbox/src/interception_agent.h
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 01:45:09 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 01:45:09 +0000
commit126720dd09a08ae7391568fe19f403a050be0627 (patch)
treebc4f78ded1e1582c291057302473308821288105 /sandbox/src/interception_agent.h
parente9e77e410bfb75a82ef7cdeb4027afea1c90daea (diff)
downloadchromium_src-126720dd09a08ae7391568fe19f403a050be0627.zip
chromium_src-126720dd09a08ae7391568fe19f403a050be0627.tar.gz
chromium_src-126720dd09a08ae7391568fe19f403a050be0627.tar.bz2
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
Diffstat (limited to 'sandbox/src/interception_agent.h')
-rw-r--r--sandbox/src/interception_agent.h16
1 files changed, 6 insertions, 10 deletions
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);