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

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

Issue 22493010: policy: load JSON schema into domain descriptor at start time. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comments and clean up includes Created 7 years, 3 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 2d7372a65d77fb1c8dfa15248c1b4bf5d8278239..79fd3cacd256735e7ea2c79b1de829a4dcbb5962 100644
--- a/chrome/browser/policy/configuration_policy_provider.h
+++ b/chrome/browser/policy/configuration_policy_provider.h
@@ -35,6 +35,9 @@ class ConfigurationPolicyProvider {
// to post to the FILE thread, for example.
virtual ~ConfigurationPolicyProvider();
+ // Perform an initial synchronous load before initialization.
+ virtual void InitialLoad();
+
// Invoked as soon as the main message loops are spinning. Policy providers
// are created early during startup to provide the initial policies; the
// Init() call allows them to perform initialization tasks that require
@@ -75,6 +78,10 @@ class ConfigurationPolicyProvider {
virtual void RegisterPolicyDomain(
scoped_refptr<const PolicyDomainDescriptor> descriptor);
+ // Registers a policy domain without triggering a policy load.
+ virtual void InitialRegisterPolicyDomain(
+ scoped_refptr<const PolicyDomainDescriptor> descriptor);
+
protected:
// Subclasses must invoke this to update the policies currently served by
// this provider. UpdatePolicy() takes ownership of |policies|.

Powered by Google App Engine
This is Rietveld 408576698