summaryrefslogtreecommitdiff
path: root/src/vm/object.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm/object.h')
-rw-r--r--src/vm/object.h219
1 files changed, 0 insertions, 219 deletions
diff --git a/src/vm/object.h b/src/vm/object.h
index 73ecb62b80..cb117898a1 100644
--- a/src/vm/object.h
+++ b/src/vm/object.h
@@ -2743,10 +2743,6 @@ class FrameSecurityDescriptorBaseObject : public Object
OBJECTREF m_DeclarativeAssertions;
OBJECTREF m_DeclarativeDenials;
OBJECTREF m_DeclarativeRestrictions;
-#ifndef FEATURE_PAL
- SAFEHANDLEREF m_callerToken; // the thread token (or process token if there was no thread token) when a call to Impersonate was made ("previous" token)
- SAFEHANDLEREF m_impToken; // the thread token after a call to Impersonate is made (the "current" impersonation)
-#endif // !FEATURE_PAL
CLR_BOOL m_assertFT;
CLR_BOOL m_assertAllPossible;
CLR_BOOL m_declSecComputed;
@@ -2880,10 +2876,6 @@ class FrameSecurityDescriptorBaseObject : public Object
LIMITED_METHOD_CONTRACT;
m_declSecComputed = !!declSec;
}
-#ifndef FEATURE_PAL
- LPVOID GetCallerToken();
- LPVOID GetImpersonationToken();
-#endif // FEATURE_PAL
};
#ifdef FEATURE_COMPRESSEDSTACK
@@ -3811,217 +3803,6 @@ typedef REF<DelegateObject> DELEGATEREF;
typedef DelegateObject* DELEGATEREF;
#endif // USE_CHECKED_OBJECTREFS
-// This class corresponds to PermissionSet on the managed side.
-class PermissionSetObject : public Object
-{
- friend class MscorlibBinder;
-
-public:
- BOOL AllPermissionsDecoded()
- {
- LIMITED_METHOD_CONTRACT;
- return _allPermissionsDecoded == TRUE;
- }
-
- BOOL ContainsCas()
- {
- LIMITED_METHOD_CONTRACT;
- return _ContainsCas == TRUE;
- }
-
- BOOL ContainsNonCas()
- {
- LIMITED_METHOD_CONTRACT;
- return _ContainsNonCas == TRUE;
- }
-
- BOOL CheckedForNonCas()
- {
- LIMITED_METHOD_CONTRACT;
- return _CheckedForNonCas == TRUE;
- }
-
- BOOL IsUnrestricted()
- {
- LIMITED_METHOD_CONTRACT;
- return _Unrestricted == TRUE;
- }
-
- OBJECTREF GetTokenBasedSet()
- {
- LIMITED_METHOD_CONTRACT;
- return _permSet;
- }
-
-
- // README:
- // If you modify the order of these fields, make sure to update the definition in
- // BCL for this object.
-private:
- // Order of the fields is important as it mirrors the layout of PermissionSet
- // to access the fields directly from unmanaged code given an OBJECTREF.
- // Please keep them in sync when you make changes to the fields.
- OBJECTREF _permSet;
- STRINGREF _serializedPermissionSet;
- OBJECTREF _permSetSaved;
- OBJECTREF _unrestrictedPermSet;
- OBJECTREF _normalPermSet;
- CLR_BOOL _Unrestricted;
- CLR_BOOL _allPermissionsDecoded;
- CLR_BOOL _ignoreTypeLoadFailures;
- CLR_BOOL _CheckedForNonCas;
- CLR_BOOL _ContainsCas;
- CLR_BOOL _ContainsNonCas;
- CLR_BOOL _Readable;
-#ifdef FEATURE_CAS_POLICY
- CLR_BOOL _canUnrestrictedOverride;
-#endif // FEATURE_CAS_POLICY
-};
-
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<PermissionSetObject> PERMISSIONSETREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef PermissionSetObject* PERMISSIONSETREF;
-#endif // USE_CHECKED_OBJECTREFS
-
-// This class corresponds to TokenBasedSet on the managed side.
-class TokenBasedSetObject : public Object
-{
-public:
- INT32 GetNumElements () {
- LIMITED_METHOD_CONTRACT;
- return _cElt;
- }
-
- OBJECTREF GetPermSet () {
- LIMITED_METHOD_CONTRACT;
- return _Obj;
- }
-
-private:
- // If you modify the order of these fields, make sure
- // to update the definition in BCL for this object.
- OBJECTREF _objSet;
- OBJECTREF _Obj;
- OBJECTREF _Set;
- INT32 _initSize;
- INT32 _increment;
- INT32 _cElt;
- INT32 _maxIndex;
-};
-
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<TokenBasedSetObject> TOKENBASEDSETREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef TokenBasedSetObject* TOKENBASEDSETREF;
-#endif // USE_CHECKED_OBJECTREFS
-
-// This class corresponds to PolicyStatement on the managed side.
-class PolicyStatementObject : public Object
-{
- friend class MscorlibBinder;
-private:
- PERMISSIONSETREF _permSet;
-#ifdef FEATURE_CAS_POLICY
- OBJECTREF _dependentEvidence;
-#endif // FEATURE_CAS_POLICY
- INT32 _attributes;
-
-public:
- PERMISSIONSETREF GetPermissionSet()
- {
- LIMITED_METHOD_CONTRACT;
- return _permSet;
- }
-};
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<PolicyStatementObject> POLICYSTATEMENTREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef PolicyStatementObject* POLICYSTATEMENTREF;
-#endif // USE_CHECKED_OBJECTREFS
-
-// This class corresponds to ApplicationTrust on the managed side.
-class ApplicationTrustObject : public Object
-{
- friend class MscorlibBinder;
-private:
-#ifdef FEATURE_CLICKONCE
- OBJECTREF _appId;
- OBJECTREF _extraInfo;
- OBJECTREF _elExtraInfo;
-#endif // FEATURE_CLICKONCE
- POLICYSTATEMENTREF _psDefaultGrant;
- OBJECTREF _fullTrustAssemblies;
- DWORD _grantSetSpecialFlags;
-#ifdef FEATURE_CLICKONCE
- CLR_BOOL _appTrustedToRun;
- CLR_BOOL _persist;
-#endif // FEATURE_CLICKONCE
-
-public:
- POLICYSTATEMENTREF GetPolicyStatement()
- {
- LIMITED_METHOD_CONTRACT;
- return _psDefaultGrant;
- }
-
- // The grant set special flags are mapped in the BCL for the DefaultGrantSet of the ApplicationTrust.
- // Since ApplicationTrust provides a reference to its DefaultGrantSet rather than a copy, the flags may
- // not be in sync if user code can ever get a hold of the ApplicationTrust object. Therefore, these
- // flags should only be used in code paths where we are sure that only trusted code can ever get a
- // reference to the ApplicationTrust (such as the ApplicationTrust created when setting up a homogenous
- // AppDomain).
- DWORD GetGrantSetSpecialFlags()
- {
- LIMITED_METHOD_CONTRACT;
- return _grantSetSpecialFlags;
- }
-};
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<ApplicationTrustObject> APPLICATIONTRUSTREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef ApplicationTrustObject* APPLICATIONTRUSTREF;
-#endif // USE_CHECKED_OBJECTREFS
-
-// This class corresponds to SecurityPermission on the managed side.
-class SecurityPermissionObject : public Object
-{
-public:
- DWORD GetFlags () {
- LIMITED_METHOD_CONTRACT;
- return _flags;
- }
-
-private:
- // If you modify the order of these fields, make sure
- // to update the definition in BCL for this object.
- DWORD _flags;
-};
-
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<SecurityPermissionObject> SECURITYPERMISSIONREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef SecurityPermissionObject* SECURITYPERMISSIONREF;
-#endif // USE_CHECKED_OBJECTREFS
-
-// This class corresponds to ReflectionPermission on the managed side.
-class ReflectionPermissionObject : public Object
-{
-public:
- DWORD GetFlags () {
- LIMITED_METHOD_CONTRACT;
- return _flags;
- }
-
-private:
- DWORD _flags;
-};
-
-#ifdef USE_CHECKED_OBJECTREFS
-typedef REF<ReflectionPermissionObject> REFLECTIONPERMISSIONREF;
-#else // USE_CHECKED_OBJECTREFS
-typedef ReflectionPermissionObject* REFLECTIONPERMISSIONREF;
-#endif // USE_CHECKED_OBJECTREFS
struct StackTraceElement;
class ClrDataAccess;