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

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

Issue 1122163002: Ensure that the DirectWrite font cache works in Chrome canary on Windows 8+ with AppContainer prote… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 months 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/sandbox_policy_base.h
diff --git a/sandbox/win/src/sandbox_policy_base.h b/sandbox/win/src/sandbox_policy_base.h
index 587d7934d3b24dc57a75788a9b4d26a48c9e2b4b..7a710322ce59424c47d34664c0aa7f1c15459df4 100644
--- a/sandbox/win/src/sandbox_policy_base.h
+++ b/sandbox/win/src/sandbox_policy_base.h
@@ -67,6 +67,8 @@ class PolicyBase : public Dispatcher, public TargetPolicy {
ResultCode AddDllToUnload(const wchar_t* dll_name) override;
ResultCode AddKernelObjectToClose(const base::char16* handle_type,
const base::char16* handle_name) override;
+ void AddHandleToShare(HANDLE handle) override;
+ HandleList GetHandlesBeingShared() override;
// Dispatcher:
Dispatcher* OnMessageReady(IPCParams* ipc,
@@ -163,6 +165,11 @@ class PolicyBase : public Dispatcher, public TargetPolicy {
static HWINSTA alternate_winstation_handle_;
static IntegrityLevel alternate_desktop_integrity_level_label_;
+ // Contains the list of handles being shared with the target process.
+ // This list contains handles other than the stderr/stdout handles which are
+ // shared with the target at times.
+ std::vector<HANDLE> handles_to_share_;
+
DISALLOW_COPY_AND_ASSIGN(PolicyBase);
};

Powered by Google App Engine
This is Rietveld 408576698