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

Unified Diff: chrome/browser/policy/configuration_policy_provider.h

Issue 6409040: New policy protobuf protocol. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/policy/configuration_policy_provider.h
diff --git a/chrome/browser/policy/configuration_policy_provider.h b/chrome/browser/policy/configuration_policy_provider.h
index af2cddf914d8d30bc56ba1373b1d347513c38650..4eedab65d1ad3e3079cd4302f1d9569ce6b58a1b 100644
--- a/chrome/browser/policy/configuration_policy_provider.h
+++ b/chrome/browser/policy/configuration_policy_provider.h
@@ -6,12 +6,14 @@
#define CHROME_BROWSER_POLICY_CONFIGURATION_POLICY_PROVIDER_H_
#pragma once
+#include <map>
#include <string>
#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/policy/configuration_policy_store_interface.h"
+#include "policy/configuration_policy_type.h"
namespace policy {
@@ -20,6 +22,8 @@ namespace policy {
// etc.) should implement a subclass of this class.
class ConfigurationPolicyProvider {
public:
+ typedef std::map<ConfigurationPolicyType, Value*> PolicyMapType;
+
class Observer {
public:
virtual ~Observer() {}
@@ -59,9 +63,14 @@ class ConfigurationPolicyProvider {
protected:
// Decodes the value tree and writes the configuration to the given |store|.
- void DecodePolicyValueTree(const DictionaryValue* policies,
+ void ApplyPolicyValueTree(const DictionaryValue* policies,
ConfigurationPolicyStoreInterface* store);
+ // Writes the configuration found in the already-decoded map |policies| to
+ // the given |store|.
+ void ApplyPolicyMap(const PolicyMapType* policies,
+ ConfigurationPolicyStoreInterface* store);
+
const PolicyDefinitionList* policy_definition_list() const {
return policy_definition_list_;
}
« no previous file with comments | « chrome/browser/policy/cloud_policy_cache_unittest.cc ('k') | chrome/browser/policy/configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698