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

Unified Diff: chrome/browser/sandbox_policy.h

Issue 2458: Use the new dll injection blocking api of the sandbox to block... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « chrome/browser/render_process_host.cc ('k') | chrome/browser/sandbox_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sandbox_policy.h
===================================================================
--- chrome/browser/sandbox_policy.h (revision 2087)
+++ chrome/browser/sandbox_policy.h (working copy)
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_SANDBOX_POLICY_H__
-#define CHROME_BROWSER_SANDBOX_POLICY_H__
+#ifndef CHROME_BROWSER_SANDBOX_POLICY_H_
+#define CHROME_BROWSER_SANDBOX_POLICY_H_
#include <string>
#include "sandbox/src/sandbox.h"
@@ -12,6 +12,9 @@
// Adds the generic policy rules to a sandbox TargetPolicy.
bool AddGenericPolicy(sandbox::TargetPolicy* policy);
+// Adds policy rules for unloaded the known dlls that cause chrome to crash.
+bool AddDllEvictionPolicy(sandbox::TargetPolicy* policy);
+
// Adds the custom policy rules for a given plugin. If dll is activex-shim,
// then clsid is the clsid of ActiveX control. Otherwise clsid is ignored.
// |trusted_plugins| contains the comma separate list of plugins that should
@@ -41,5 +44,5 @@
// is disabled.
bool ApplyPolicyForUntrustedPlugin(sandbox::TargetPolicy* policy);
-#endif // CHROME_BROWSER_SANDBOX_POLICY_H__
+#endif // CHROME_BROWSER_SANDBOX_POLICY_H_
« no previous file with comments | « chrome/browser/render_process_host.cc ('k') | chrome/browser/sandbox_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698