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

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: 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
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..8212a84024d52291e7879c4335f1379a7ab87eae 100644
--- a/chrome/browser/policy/policy_loader_mac.h
+++ b/chrome/browser/policy/policy_loader_mac.h
@@ -5,6 +5,8 @@
#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"
@@ -19,6 +21,8 @@ class Value;
namespace policy {
+class PolicyMap;
+class PolicySchema;
struct PolicyDefinitionList;
// A policy loader that loads policies from the Mac preferences system, and
@@ -44,6 +48,12 @@ class PolicyLoaderMac : public AsyncPolicyLoader {
// Callback for the FilePathWatcher.
void OnFileUpdated(const base::FilePath& path, bool error);
+ // Loads the policies described in |schema| from the bundle identified by
+ // |bundle_id_string|, and stores them in |policy|.
+ void LoadComponentPolicy(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') | chrome/browser/policy/policy_loader_mac.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698