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

Side by Side Diff: chrome/browser/policy/policy_loader_win.h

Issue 10656046: Use a schema to decode 3rd party policy on windows, when present. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed comments Created 8 years, 5 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 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/policy/policy_loader_mac_unittest.cc ('k') | chrome/browser/policy/policy_loader_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698