Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(983)

Unified Diff: sandbox/win/src/service_resolver.h

Issue 84063004: Restructure sandbox code to reduce dependencies pulled in by intercept code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Grr.. rietveld upload! Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: sandbox/win/src/service_resolver.h
diff --git a/sandbox/win/src/service_resolver.h b/sandbox/win/src/service_resolver.h
index 3eb9e0838109e322c9a871a02e6b02cead3a7090..00896922049ad45b569a111f97384cb97f57782b 100644
--- a/sandbox/win/src/service_resolver.h
+++ b/sandbox/win/src/service_resolver.h
@@ -43,6 +43,9 @@ class ServiceResolverThunk : public ResolverThunk {
// Implementation of Resolver::GetThunkSize.
virtual size_t GetThunkSize() const;
+ // Call this to set up ntdll_base_ which will allow for local patches.
+ virtual void AllowLocalPatches();
cpu_(ooo_6.6-7.5) 2013/11/29 18:30:07 Do we want a way to unset this? I am correct in
robertshield 2013/11/29 19:29:08 I first wrote this with a |bool allow| parameter,
cpu_(ooo_6.6-7.5) 2013/12/01 00:18:44 Yeah, I thought ntdll_base_ was a static global, b
+
protected:
// The unit test will use this member to allow local patch on a buffer.
HMODULE ntdll_base_;

Powered by Google App Engine
This is Rietveld 408576698