diff options
author | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 01:45:09 +0000 |
---|---|---|
committer | cpu@google.com <cpu@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-18 01:45:09 +0000 |
commit | 126720dd09a08ae7391568fe19f403a050be0627 (patch) | |
tree | bc4f78ded1e1582c291057302473308821288105 /sandbox/src/sandbox_policy.h | |
parent | e9e77e410bfb75a82ef7cdeb4027afea1c90daea (diff) | |
download | chromium_src-126720dd09a08ae7391568fe19f403a050be0627.zip chromium_src-126720dd09a08ae7391568fe19f403a050be0627.tar.gz chromium_src-126720dd09a08ae7391568fe19f403a050be0627.tar.bz2 |
back out my sbox change
TBR=nsylvain
Review URL: http://codereview.chromium.org/3132
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2353 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sandbox/src/sandbox_policy.h')
-rw-r--r-- | sandbox/src/sandbox_policy.h | 29 |
1 files changed, 12 insertions, 17 deletions
diff --git a/sandbox/src/sandbox_policy.h b/sandbox/src/sandbox_policy.h index 6e3983a..b47f6ad 100644 --- a/sandbox/src/sandbox_policy.h +++ b/sandbox/src/sandbox_policy.h @@ -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 SANDBOX_SRC_SANDBOX_POLICY_H_ -#define SANDBOX_SRC_SANDBOX_POLICY_H_ +#ifndef SANDBOX_SRC_SANDBOX_POLICY_H__ +#define SANDBOX_SRC_SANDBOX_POLICY_H__ #include "base/basictypes.h" #include "sandbox/src/sandbox_types.h" @@ -13,16 +13,6 @@ namespace sandbox { class TargetPolicy { public: - // Increments the reference count of this object. The reference count must - // be incremented if this interface is given to another component. - virtual void AddRef() = 0; - - // Decrements the reference count of this object. When the reference count - // is zero the object is automatically destroyed. - // Indicates that the caller is done with this interface. After calling - // release no other method should be called. - virtual void Release() = 0; - // Sets the security level for the target process' two tokens. // This setting is permanent and cannot be changed once the target process is // spawned. @@ -154,14 +144,19 @@ class TargetPolicy { virtual ResultCode AddRule(SubSystem subsystem, Semantics semantics, const wchar_t* pattern) = 0; - // Adds a dll that will be unloaded in the target process before it gets - // a chance to initialize itself. Typically, dlls that cause the target - // to crash go here. - virtual ResultCode AddDllToUnload(const wchar_t* dll_name) = 0; + // Increments the reference count of this object. The reference count must + // be incremented if this interface is given to another component. + virtual void AddRef() = 0; + + // Decrements the reference count of this object. When the reference count + // is zero the object is automatically destroyed. + // Indicates that the caller is done with this interface. After calling + // release no other method should be called. + virtual void Release() = 0; }; } // namespace sandbox -#endif // SANDBOX_SRC_SANDBOX_POLICY_H_ +#endif // SANDBOX_SRC_SANDBOX_POLICY_H__ |