| Index: chrome/browser/policy/policy_loader_mac.h
|
| diff --git a/chrome/browser/policy/policy_loader_mac.h b/chrome/browser/policy/policy_loader_mac.h
|
| index 800491d27bbd5787e2651a5b1134711cba2822a1..1d6d5facb55668e41fd6ca3992a4409c5809460d 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_;
|
|
|
|
|