summaryrefslogtreecommitdiffstats
path: root/sandbox/src/interception_internal.h
diff options
context:
space:
mode:
authorcpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 00:26:01 +0000
committercpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-18 00:26:01 +0000
commit9cd0144cccf979ecce9f193f77e50c05544bc4a7 (patch)
tree548283eb1965017d2f1c46e9bb63aa8cbc7816d5 /sandbox/src/interception_internal.h
parent35aa85ac00fbfa16bd9f52b05e47eb09a3b6a0ce (diff)
downloadchromium_src-9cd0144cccf979ecce9f193f77e50c05544bc4a7.zip
chromium_src-9cd0144cccf979ecce9f193f77e50c05544bc4a7.tar.gz
chromium_src-9cd0144cccf979ecce9f193f77e50c05544bc4a7.tar.bz2
Add an interface to the sandbox to block dll from loading in the target process
- new interface is TargetPolicy::AddDllToUnload - Added integration tests and unit tests. Review URL: http://codereview.chromium.org/2413 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2348 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/interception_internal.h')
-rw-r--r--sandbox/src/interception_internal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sandbox/src/interception_internal.h b/sandbox/src/interception_internal.h
index 67cfe31..e6e91bf 100644
--- a/sandbox/src/interception_internal.h
+++ b/sandbox/src/interception_internal.h
@@ -3,11 +3,11 @@
// found in the LICENSE file.
// Defines InterceptionManager, the class in charge of setting up interceptions
-// for the sandboxed process. For more datails see
+// for the sandboxed process. For more details see:
// http://wiki/Main/ChromeSandboxInterceptionDesign
-#ifndef SANDBOX_SRC_INTERCEPTION_INTERNAL_H__
-#define SANDBOX_SRC_INTERCEPTION_INTERNAL_H__
+#ifndef SANDBOX_SRC_INTERCEPTION_INTERNAL_H_
+#define SANDBOX_SRC_INTERCEPTION_INTERNAL_H_
#include "sandbox/src/sandbox_types.h"
@@ -37,6 +37,7 @@ struct DllPatchInfo {
size_t record_bytes; // rounded to sizeof(size_t) bytes
size_t offset_to_functions;
int num_functions;
+ bool unload_module;
wchar_t dll_name[1]; // placeholder for null terminated name
// FunctionInfo function_info[] // followed by the functions to intercept
};
@@ -66,5 +67,5 @@ struct DllInterceptionData {
} // namespace sandbox
-#endif // SANDBOX_SRC_INTERCEPTION_INTERNAL_H__
+#endif // SANDBOX_SRC_INTERCEPTION_INTERNAL_H_