summaryrefslogtreecommitdiffstats
path: root/chrome/browser/policy/policy_loader_mac.h
diff options
context:
space:
mode:
authorjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 17:44:18 +0000
committerjoaodasilva@chromium.org <joaodasilva@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-28 17:44:18 +0000
commitea79de87234c1865609b94cc06c0474825166f10 (patch)
tree6e6889f35eb96b40d102806f6a6f9c5a3c53d0b3 /chrome/browser/policy/policy_loader_mac.h
parent0224e60c4d61dcb346a72a7748cabd28be5bf9cd (diff)
downloadchromium_src-ea79de87234c1865609b94cc06c0474825166f10.zip
chromium_src-ea79de87234c1865609b94cc06c0474825166f10.tar.gz
chromium_src-ea79de87234c1865609b94cc06c0474825166f10.tar.bz2
Load policy for extensions at the Mac policy provider.
The Mac policy provider loads policies for the browser. This change makes it additionally load policies for the extensions described in the PolicyDomainDescriptor for extensions. BUG=108992 Review URL: https://chromiumcodereview.appspot.com/15038007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202597 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/policy/policy_loader_mac.h')
-rw-r--r--chrome/browser/policy/policy_loader_mac.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/chrome/browser/policy/policy_loader_mac.h b/chrome/browser/policy/policy_loader_mac.h
index 800491d..1d6d5fa 100644
--- a/chrome/browser/policy/policy_loader_mac.h
+++ b/chrome/browser/policy/policy_loader_mac.h
@@ -5,10 +5,13 @@
#ifndef CHROME_BROWSER_POLICY_POLICY_LOADER_MAC_H_
#define CHROME_BROWSER_POLICY_POLICY_LOADER_MAC_H_
+#include <string>
+
#include <CoreFoundation/CoreFoundation.h>
#include "base/files/file_path.h"
#include "base/files/file_path_watcher.h"
+#include "base/memory/ref_counted.h"
#include "chrome/browser/policy/async_policy_loader.h"
class MacPreferences;
@@ -19,6 +22,9 @@ class Value;
namespace policy {
+class PolicyDomainDescriptor;
+class PolicyMap;
+class PolicySchema;
struct PolicyDefinitionList;
// A policy loader that loads policies from the Mac preferences system, and
@@ -44,6 +50,19 @@ class PolicyLoaderMac : public AsyncPolicyLoader {
// Callback for the FilePathWatcher.
void OnFileUpdated(const base::FilePath& path, bool error);
+ // Loads policies for the components described in |descriptor|, which belong
+ // to the domain |domain_name|, and stores them in the |bundle|.
+ void LoadPolicyForDomain(
+ scoped_refptr<const PolicyDomainDescriptor> descriptor,
+ const std::string& domain_name,
+ PolicyBundle* bundle);
+
+ // Loads the policies described in |schema| from the bundle identified by
+ // |bundle_id_string|, and stores them in |policy|.
+ void LoadPolicyForComponent(const std::string& bundle_id_string,
+ const PolicySchema* schema,
+ PolicyMap* policy);
+
// List of recognized policies.
const PolicyDefinitionList* policy_list_;