security/sandbox/win/src/sid.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/security/sandbox/win/src/sid.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
     1.5 +// Use of this source code is governed by a BSD-style license that can be
     1.6 +// found in the LICENSE file.
     1.7 +
     1.8 +#ifndef SANDBOX_SRC_SID_H_
     1.9 +#define SANDBOX_SRC_SID_H_
    1.10 +
    1.11 +#include <windows.h>
    1.12 +
    1.13 +namespace sandbox {
    1.14 +
    1.15 +// This class is used to hold and generate SIDS.
    1.16 +class Sid {
    1.17 + public:
    1.18 +  // Constructors initializing the object with the SID passed.
    1.19 +  // This is a converting constructor. It is not explicit.
    1.20 +  Sid(const SID *sid);
    1.21 +  Sid(WELL_KNOWN_SID_TYPE type);
    1.22 +
    1.23 +  // Returns sid_.
    1.24 +  const SID *GetPSID() const;
    1.25 +
    1.26 + private:
    1.27 +  BYTE sid_[SECURITY_MAX_SID_SIZE];
    1.28 +};
    1.29 +
    1.30 +}  // namespace sandbox
    1.31 +
    1.32 +#endif  // SANDBOX_SRC_SID_H_

mercurial