michael@0: // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef SANDBOX_SRC_SID_H_ michael@0: #define SANDBOX_SRC_SID_H_ michael@0: michael@0: #include michael@0: michael@0: namespace sandbox { michael@0: michael@0: // This class is used to hold and generate SIDS. michael@0: class Sid { michael@0: public: michael@0: // Constructors initializing the object with the SID passed. michael@0: // This is a converting constructor. It is not explicit. michael@0: Sid(const SID *sid); michael@0: Sid(WELL_KNOWN_SID_TYPE type); michael@0: michael@0: // Returns sid_. michael@0: const SID *GetPSID() const; michael@0: michael@0: private: michael@0: BYTE sid_[SECURITY_MAX_SID_SIZE]; michael@0: }; michael@0: michael@0: } // namespace sandbox michael@0: michael@0: #endif // SANDBOX_SRC_SID_H_