OLD | NEW |
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 CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ | 5 #ifndef CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ |
6 #define CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ | 6 #define CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/synchronization/waitable_event.h" | 9 #include "base/synchronization/waitable_event.h" |
10 #include "base/win/object_watcher.h" | 10 #include "base/win/object_watcher.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 base::WaitableEvent user_policy_changed_event_; | 43 base::WaitableEvent user_policy_changed_event_; |
44 base::WaitableEvent machine_policy_changed_event_; | 44 base::WaitableEvent machine_policy_changed_event_; |
45 base::win::ObjectWatcher user_policy_watcher_; | 45 base::win::ObjectWatcher user_policy_watcher_; |
46 base::win::ObjectWatcher machine_policy_watcher_; | 46 base::win::ObjectWatcher machine_policy_watcher_; |
47 bool user_policy_watcher_failed_; | 47 bool user_policy_watcher_failed_; |
48 bool machine_policy_watcher_failed_; | 48 bool machine_policy_watcher_failed_; |
49 | 49 |
50 DISALLOW_COPY_AND_ASSIGN(PolicyLoaderWin); | 50 DISALLOW_COPY_AND_ASSIGN(PolicyLoaderWin); |
51 }; | 51 }; |
52 | 52 |
| 53 // Constants shared with tests. |
| 54 namespace registry_constants { |
| 55 // Path separator for registry keys. |
| 56 extern const wchar_t kPathSep[]; |
| 57 // Registry key within Chrome's key that contains 3rd party policy. |
| 58 extern const wchar_t kThirdParty[]; |
| 59 // Registry key within an extension's namespace that contains mandatory |
| 60 // policy. |
| 61 extern const wchar_t kMandatory[]; |
| 62 // Registry key within an extension's namespace that contains recommended |
| 63 // policy. |
| 64 extern const wchar_t kRecommended[]; |
| 65 // Registry key within an extension's namespace that contains the policy |
| 66 // schema. |
| 67 extern const wchar_t kSchema[]; |
| 68 // Key in a JSON schema that indicates the expected type. |
| 69 extern const char kType[]; |
| 70 // Key in a JSON schema that indicates the expected properties of an object. |
| 71 extern const char kProperties[]; |
| 72 // Key in a JSON schema that indicates the default schema for object |
| 73 // properties. |
| 74 extern const char kAdditionalProperties[]; |
| 75 // Key in a JSON schema that indicates the expected type of list items. |
| 76 extern const char kItems[]; |
| 77 } // namespace registry_constants |
| 78 |
53 } // namespace policy | 79 } // namespace policy |
54 | 80 |
55 #endif // CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ | 81 #endif // CHROME_BROWSER_POLICY_POLICY_LOADER_WIN_H_ |
OLD | NEW |