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

Unified Diff: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h

Issue 70863002: Refactored the ComponentCloudPolicyService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
diff --git a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
index 8448801f61b51a8e0e67bd747f681a965aab3c40..f1cb0ac850d0e08ec08255684a0c328059df99e9 100644
--- a/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
+++ b/chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h
@@ -9,6 +9,7 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
+#include "base/files/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
@@ -36,7 +37,6 @@ namespace policy {
class CloudExternalDataManager;
class DeviceManagementService;
class PolicyOAuth2TokenFetcher;
-class ResourceCache;
// UserCloudPolicyManagerChromeOS implements logic for initializing user policy
// on Chrome OS.
@@ -54,7 +54,7 @@ class UserCloudPolicyManagerChromeOS
scoped_ptr<CloudPolicyStore> store,
scoped_ptr<CloudExternalDataManager> external_data_manager,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- scoped_ptr<ResourceCache> resource_cache,
+ const base::FilePath& resource_cache_dir,
bool wait_for_policy_fetch,
base::TimeDelta initial_policy_fetch_timeout);
virtual ~UserCloudPolicyManagerChromeOS();
@@ -83,7 +83,6 @@ class UserCloudPolicyManagerChromeOS
// ConfigurationPolicyProvider:
virtual void Shutdown() OVERRIDE;
virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
- virtual void OnSchemaRegistryUpdated(bool has_new_schemas) OVERRIDE;
// CloudPolicyManager:
virtual scoped_ptr<PolicyBundle> CreatePolicyBundle() OVERRIDE;
@@ -101,6 +100,9 @@ class UserCloudPolicyManagerChromeOS
virtual void OnComponentCloudPolicyUpdated() OVERRIDE;
private:
+ void CreateComponentCloudPolicyService(
+ const scoped_refptr<net::URLRequestContextGetter>& request_context);
+
// Fetches a policy token using the authentication context of the signin
// Profile, and calls back to OnOAuth2PolicyTokenFetched when done.
void FetchPolicyOAuthTokenUsingSigninProfile();
@@ -132,6 +134,9 @@ class UserCloudPolicyManagerChromeOS
// |store_|, so destroy it first.
scoped_ptr<ComponentCloudPolicyService> component_policy_service_;
+ // Directory for the ResourceCache, if one is created.
+ base::FilePath resource_cache_dir_;
+
// Whether to wait for a policy fetch to complete before reporting
// IsInitializationComplete().
bool wait_for_policy_fetch_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698