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

Side by Side Diff: cloud_print/service/win/local_security_policy.h

Issue 16511009: Use a direct include of strings headers in cloud_print/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
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 CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_ 5 #ifndef CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_
6 #define CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_ 6 #define CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_
7 7
8 #include <wtypes.h> // Has to be before ntsecapi.h 8 #include <wtypes.h> // Has to be before ntsecapi.h
9 #include <ntsecapi.h> 9 #include <ntsecapi.h>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/string16.h" 12 #include "base/strings/string16.h"
13 13
14 extern const wchar_t kSeServiceLogonRight[]; 14 extern const wchar_t kSeServiceLogonRight[];
15 15
16 class LocalSecurityPolicy { 16 class LocalSecurityPolicy {
17 public: 17 public:
18 LocalSecurityPolicy(); 18 LocalSecurityPolicy();
19 ~LocalSecurityPolicy(); 19 ~LocalSecurityPolicy();
20 20
21 bool Open(); 21 bool Open();
22 void Close(); 22 void Close();
23 23
24 bool IsPrivilegeSet(const string16& username, 24 bool IsPrivilegeSet(const string16& username,
25 const string16& privilage) const; 25 const string16& privilage) const;
26 bool SetPrivilege(const string16& username, const string16& privilage); 26 bool SetPrivilege(const string16& username, const string16& privilage);
27 27
28 private: 28 private:
29 LSA_HANDLE policy_; 29 LSA_HANDLE policy_;
30 30
31 DISALLOW_COPY_AND_ASSIGN(LocalSecurityPolicy); 31 DISALLOW_COPY_AND_ASSIGN(LocalSecurityPolicy);
32 }; 32 };
33 33
34 #endif // CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_ 34 #endif // CLOUD_PRINT_SERVICE_WIN_LOCAL_SECURITY_POLICY_H_
OLDNEW
« no previous file with comments | « cloud_print/service/win/cloud_print_service_config.cc ('k') | cloud_print/service/win/local_security_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698