Index: sandbox/win/src/heap_helper.h |
diff --git a/sandbox/win/src/heap_helper.h b/sandbox/win/src/heap_helper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5d240cfcf5443d3b692da14a51e9b5e348661df7 |
--- /dev/null |
+++ b/sandbox/win/src/heap_helper.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include <windows.h> |
+ |
+#include "base/win/windows_version.h" |
+ |
+namespace sandbox { |
+// These helper functions are not expected to be used generally, but are exposed |
+// only to allow direct testing of this functionality. |
+ |
+// Return the flags for this heap handle. No verification of the handle or the |
+// flags is performed. |
+DWORD HeapFlags(HANDLE handle); |
+ |
+// Return the handle to the CSR Port Heap, return nullptr if none or more than |
+// one candidate was found. |
+HANDLE FindCsrPortHeap(); |
+ |
+} // namespace sandbox |