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

Side by Side Diff: sandbox/win/src/acl.h

Issue 1837483003: Move base::FreeDeleter into its own header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SANDBOX_SRC_ACL_H_ 5 #ifndef SANDBOX_SRC_ACL_H_
6 #define SANDBOX_SRC_ACL_H_ 6 #define SANDBOX_SRC_ACL_H_
7 7
8 #include <AccCtrl.h> 8 #include <AccCtrl.h>
9 #include <windows.h> 9 #include <windows.h>
10 10
11 #include "base/memory/free_deleter.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "sandbox/win/src/sid.h" 13 #include "sandbox/win/src/sid.h"
13 14
14 namespace sandbox { 15 namespace sandbox {
15 16
16 // Returns the default dacl from the token passed in. 17 // Returns the default dacl from the token passed in.
17 bool GetDefaultDacl( 18 bool GetDefaultDacl(
18 HANDLE token, 19 HANDLE token,
19 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl); 20 scoped_ptr<TOKEN_DEFAULT_DACL, base::FreeDeleter>* default_dacl);
20 21
(...skipping 14 matching lines...) Expand all
35 // Adds an ACE represented by |known_sid|, |access_mode|, and |access| to 36 // Adds an ACE represented by |known_sid|, |access_mode|, and |access| to
36 // the dacl of the kernel object referenced by |object| and of |object_type|. 37 // the dacl of the kernel object referenced by |object| and of |object_type|.
37 bool AddKnownSidToObject(HANDLE object, SE_OBJECT_TYPE object_type, 38 bool AddKnownSidToObject(HANDLE object, SE_OBJECT_TYPE object_type,
38 const Sid& sid, ACCESS_MODE access_mode, 39 const Sid& sid, ACCESS_MODE access_mode,
39 ACCESS_MASK access); 40 ACCESS_MASK access);
40 41
41 } // namespace sandbox 42 } // namespace sandbox
42 43
43 44
44 #endif // SANDBOX_SRC_ACL_H_ 45 #endif // SANDBOX_SRC_ACL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698