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

Side by Side Diff: remoting/host/win/security_descriptor.h

Issue 810133003: replace NULL->nullptr in src/remoting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « remoting/host/win/rdp_desktop_session.cc ('k') | remoting/host/win/security_descriptor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_ 5 #ifndef REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_
6 #define REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_ 6 #define REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "remoting/base/typed_buffer.h" 12 #include "remoting/base/typed_buffer.h"
13 13
14 namespace remoting { 14 namespace remoting {
15 15
16 typedef TypedBuffer<ACL> ScopedAcl; 16 typedef TypedBuffer<ACL> ScopedAcl;
17 typedef TypedBuffer<SECURITY_DESCRIPTOR> ScopedSd; 17 typedef TypedBuffer<SECURITY_DESCRIPTOR> ScopedSd;
18 typedef TypedBuffer<SID> ScopedSid; 18 typedef TypedBuffer<SID> ScopedSid;
19 19
20 // Converts an SDDL string into a binary self-relative security descriptor. 20 // Converts an SDDL string into a binary self-relative security descriptor.
21 ScopedSd ConvertSddlToSd(const std::string& sddl); 21 ScopedSd ConvertSddlToSd(const std::string& sddl);
22 22
23 // Converts a SID into a text string. 23 // Converts a SID into a text string.
24 std::string ConvertSidToString(SID* sid); 24 std::string ConvertSidToString(SID* sid);
25 25
26 // Returns the logon SID of a token. Returns NULL if the token does not specify 26 // Returns the logon SID of a token. Returns nullptr if the token does not
27 // a logon SID or in case of an error. 27 // specify a logon SID or in case of an error.
28 ScopedSid GetLogonSid(HANDLE token); 28 ScopedSid GetLogonSid(HANDLE token);
29 29
30 // Converts a security descriptor in self-relative format to a security 30 // Converts a security descriptor in self-relative format to a security
31 // descriptor in absolute format. 31 // descriptor in absolute format.
32 bool MakeScopedAbsoluteSd(const ScopedSd& relative_sd, 32 bool MakeScopedAbsoluteSd(const ScopedSd& relative_sd,
33 ScopedSd* absolute_sd, 33 ScopedSd* absolute_sd,
34 ScopedAcl* dacl, 34 ScopedAcl* dacl,
35 ScopedSid* group, 35 ScopedSid* group,
36 ScopedSid* owner, 36 ScopedSid* owner,
37 ScopedAcl* sacl); 37 ScopedAcl* sacl);
38 38
39 } // namespace remoting 39 } // namespace remoting
40 40
41 #endif // REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_ 41 #endif // REMOTING_HOST_WIN_SECURITY_DESCRIPTOR_H_
OLDNEW
« no previous file with comments | « remoting/host/win/rdp_desktop_session.cc ('k') | remoting/host/win/security_descriptor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698