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

Side by Side Diff: chrome/browser/policy/cloud_policy_subsystem.h

Issue 6705031: Send policy blobs to session_manager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nits Created 9 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/prefs/pref_member.h" 10 #include "chrome/browser/prefs/pref_member.h"
11 #include "content/common/notification_observer.h" 11 #include "content/common/notification_observer.h"
12 12
13 class FilePath;
14 class PrefService; 13 class PrefService;
15 class URLRequestContextGetter; 14 class URLRequestContextGetter;
16 15
17 namespace policy { 16 namespace policy {
18 17
19 class CloudPolicyCache; 18 class CloudPolicyCacheBase;
20 class CloudPolicyController; 19 class CloudPolicyController;
21 class CloudPolicyIdentityStrategy; 20 class CloudPolicyIdentityStrategy;
22 class ConfigurationPolicyProvider; 21 class ConfigurationPolicyProvider;
23 class DeviceManagementService; 22 class DeviceManagementService;
24 class DeviceTokenFetcher; 23 class DeviceTokenFetcher;
25 24
26 // This class is a container for the infrastructure required to support cloud 25 // This class is a container for the infrastructure required to support cloud
27 // policy. It glues together the backend, the policy controller and manages the 26 // policy. It glues together the backend, the policy controller and manages the
28 // life cycle of the policy providers. 27 // life cycle of the policy providers.
29 class CloudPolicySubsystem : public NotificationObserver { 28 class CloudPolicySubsystem : public NotificationObserver {
30 public: 29 public:
31 CloudPolicySubsystem(const FilePath& policy_cache_file, 30 CloudPolicySubsystem(CloudPolicyIdentityStrategy* identity_strategy,
32 CloudPolicyIdentityStrategy* identity_strategy); 31 CloudPolicyCacheBase* policy_cache);
33 virtual ~CloudPolicySubsystem(); 32 virtual ~CloudPolicySubsystem();
34 33
35 // Initializes the subsystem. 34 // Initializes the subsystem.
36 void Initialize(PrefService* prefs, 35 void Initialize(PrefService* prefs,
37 const char* refresh_rate_pref_name, 36 const char* refresh_rate_pref_name,
38 URLRequestContextGetter* request_context); 37 URLRequestContextGetter* request_context);
39 38
40 // Shuts the subsystem down. This must be called before threading and network 39 // Shuts the subsystem down. This must be called before threading and network
41 // infrastructure goes away. 40 // infrastructure goes away.
42 void Shutdown(); 41 void Shutdown();
(...skipping 12 matching lines...) Expand all
55 54
56 // The pref service that controls the refresh rate. 55 // The pref service that controls the refresh rate.
57 PrefService* prefs_; 56 PrefService* prefs_;
58 57
59 // Tracks the pref value for the policy refresh rate. 58 // Tracks the pref value for the policy refresh rate.
60 IntegerPrefMember policy_refresh_rate_; 59 IntegerPrefMember policy_refresh_rate_;
61 60
62 // Cloud policy infrastructure stuff. 61 // Cloud policy infrastructure stuff.
63 scoped_ptr<DeviceManagementService> device_management_service_; 62 scoped_ptr<DeviceManagementService> device_management_service_;
64 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_; 63 scoped_ptr<DeviceTokenFetcher> device_token_fetcher_;
65 scoped_ptr<CloudPolicyCache> cloud_policy_cache_; 64 scoped_ptr<CloudPolicyCacheBase> cloud_policy_cache_;
66 scoped_ptr<CloudPolicyController> cloud_policy_controller_; 65 scoped_ptr<CloudPolicyController> cloud_policy_controller_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); 67 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem);
69 }; 68 };
70 69
71 } // namespace policy 70 } // namespace policy
72 71
73 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ 72 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_controller_unittest.cc ('k') | chrome/browser/policy/cloud_policy_subsystem.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698