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

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

Issue 15200005: Grab bag of clang fixes for Windows code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_POLICY_PARAMS_H__ 5 #ifndef SANDBOX_SRC_POLICY_PARAMS_H__
6 #define SANDBOX_SRC_POLICY_PARAMS_H__ 6 #define SANDBOX_SRC_POLICY_PARAMS_H__
7 7
8 #include "sandbox/win/src/policy_engine_params.h" 8 #include "sandbox/win/src/policy_engine_params.h"
9 9
10 namespace sandbox { 10 namespace sandbox {
(...skipping 14 matching lines...) Expand all
25 POLPARAM(ACCESS) 25 POLPARAM(ACCESS)
26 POLPARAM(OPTIONS) 26 POLPARAM(OPTIONS)
27 POLPARAMS_END(OpenFile) 27 POLPARAMS_END(OpenFile)
28 28
29 // Policy parameter for name-based policies. 29 // Policy parameter for name-based policies.
30 POLPARAMS_BEGIN(FileName) 30 POLPARAMS_BEGIN(FileName)
31 POLPARAM(NAME) 31 POLPARAM(NAME)
32 POLPARAM(BROKER) // TRUE if called from the broker. 32 POLPARAM(BROKER) // TRUE if called from the broker.
33 POLPARAMS_END(FileName) 33 POLPARAMS_END(FileName)
34 34
35 COMPILE_ASSERT(OpenFile::NAME == FileName::NAME, to_simplify_fs_policies); 35 COMPILE_ASSERT(OpenFile::NAME == (int)FileName::NAME, to_simplify_fs_policies);
36 COMPILE_ASSERT(OpenFile::BROKER == FileName::BROKER, to_simplify_fs_policies); 36 COMPILE_ASSERT(OpenFile::BROKER == (int)FileName::BROKER,
mmenke 2013/05/16 21:58:46 C-style casts violate Google style guide.
37 to_simplify_fs_policies);
37 38
38 // Policy parameter for name-based policies. 39 // Policy parameter for name-based policies.
39 POLPARAMS_BEGIN(NameBased) 40 POLPARAMS_BEGIN(NameBased)
40 POLPARAM(NAME) 41 POLPARAM(NAME)
41 POLPARAMS_END(NameBased) 42 POLPARAMS_END(NameBased)
42 43
43 // Policy parameters for open event. 44 // Policy parameters for open event.
44 POLPARAMS_BEGIN(OpenEventParams) 45 POLPARAMS_BEGIN(OpenEventParams)
45 POLPARAM(NAME) 46 POLPARAM(NAME)
46 POLPARAM(ACCESS) 47 POLPARAM(ACCESS)
47 POLPARAMS_END(OpenEventParams) 48 POLPARAMS_END(OpenEventParams)
48 49
49 // Policy Parameters for reg open / create. 50 // Policy Parameters for reg open / create.
50 POLPARAMS_BEGIN(OpenKey) 51 POLPARAMS_BEGIN(OpenKey)
51 POLPARAM(NAME) 52 POLPARAM(NAME)
52 POLPARAM(ACCESS) 53 POLPARAM(ACCESS)
53 POLPARAMS_END(OpenKey) 54 POLPARAMS_END(OpenKey)
54 55
55 // Policy parameter for name-based policies. 56 // Policy parameter for name-based policies.
56 POLPARAMS_BEGIN(HandleTarget) 57 POLPARAMS_BEGIN(HandleTarget)
57 POLPARAM(NAME) 58 POLPARAM(NAME)
58 POLPARAM(TARGET) 59 POLPARAM(TARGET)
59 POLPARAMS_END(HandleTarget) 60 POLPARAMS_END(HandleTarget)
60 61
61 62
62 } // namespace sandbox 63 } // namespace sandbox
63 64
64 #endif // SANDBOX_SRC_POLICY_PARAMS_H__ 65 #endif // SANDBOX_SRC_POLICY_PARAMS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698