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

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

Issue 7972013: ConfigurationPolicyPrefStore refactoring to surface error messages. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 2 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
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_
6 #define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_
7 #pragma once
8
9 #include <vector>
10
11 #include "base/values.h"
12 #include "policy/configuration_policy_type.h"
13
14 namespace policy {
15
16 class ConfigurationPolicyHandlerInterface;
17
18 typedef std::vector<ConfigurationPolicyHandlerInterface*> HandlerList;
19
20 // Fills the passed in |list| with all available handlers derived from
21 // ConfigurationPolicyHandlerInterface.
22 void MakeConfigurationPolicyHandlers(HandlerList* handlers);
23
24 // Deletes the ConfigurationPolicyHandler pointers in |handlers| and clears
25 // |handlers|.
26 void DeleteConfigurationPolicyHandlers(HandlerList* handlers);
27
28 // Lists policies that map to a single preference. These are handled by
29 // SimplePolicyHandler. Each one of these policies has an entry in
30 // kSimplePolicyMap with the following type.
31 struct PolicyToPreferenceMapEntry {
32 base::Value::Type value_type;
33 ConfigurationPolicyType policy_type;
34 const char* preference_path; // A DictionaryValue path, not a file path.
35 };
36
37 } // namespace policy
38
39 #endif // CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_HANDLER_LIST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698