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

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

Issue 15038007: Load policy for extensions at the Mac policy provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: check for NULL schemas Created 7 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | chrome/browser/policy/policy_loader_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698