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

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

Issue 10386097: Refactored ConfigurationPolicyProvider to provide PolicyBundles instead of PolicyMaps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 8 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/asynchronous_policy_provider.h
diff --git a/chrome/browser/policy/asynchronous_policy_provider.h b/chrome/browser/policy/asynchronous_policy_provider.h
index 3830300a69dcc601a1f54a3d06c1551d08fd6475..26e85e8ab2eba1f2ac2db4b2fb2c276182327581 100644
--- a/chrome/browser/policy/asynchronous_policy_provider.h
+++ b/chrome/browser/policy/asynchronous_policy_provider.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "chrome/browser/policy/configuration_policy_provider.h"
@@ -14,6 +15,7 @@
namespace policy {
class AsynchronousPolicyLoader;
+class PolicyBundle;
class PolicyMap;
// Policy provider that loads policy asynchronously. Providers should subclass
@@ -42,7 +44,6 @@ class AsynchronousPolicyProvider
virtual ~AsynchronousPolicyProvider();
// ConfigurationPolicyProvider implementation.
- virtual bool ProvideInternal(PolicyMap* map) OVERRIDE;
virtual void RefreshPolicies() OVERRIDE;
private:
@@ -54,7 +55,7 @@ class AsynchronousPolicyProvider
// Callback from the loader. This is invoked whenever the loader has completed
// a reload of the policies.
- void OnLoaderReloaded();
+ void OnLoaderReloaded(scoped_ptr<PolicyBundle> bundle);
// The loader object used internally.
scoped_refptr<AsynchronousPolicyLoader> loader_;
« no previous file with comments | « chrome/browser/policy/asynchronous_policy_loader_unittest.cc ('k') | chrome/browser/policy/asynchronous_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698