OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/prefs/pref_change_registrar.h" | 9 #include "chrome/browser/prefs/pref_change_registrar.h" |
10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 CloudPolicySubsystem::Observer* observer); | 64 CloudPolicySubsystem::Observer* observer); |
65 ~ObserverRegistrar(); | 65 ~ObserverRegistrar(); |
66 | 66 |
67 private: | 67 private: |
68 PolicyNotifier* policy_notifier_; | 68 PolicyNotifier* policy_notifier_; |
69 CloudPolicySubsystem::Observer* observer_; | 69 CloudPolicySubsystem::Observer* observer_; |
70 DISALLOW_COPY_AND_ASSIGN(ObserverRegistrar); | 70 DISALLOW_COPY_AND_ASSIGN(ObserverRegistrar); |
71 }; | 71 }; |
72 | 72 |
73 CloudPolicySubsystem(CloudPolicyDataStore* data_store, | 73 CloudPolicySubsystem(CloudPolicyDataStore* data_store, |
74 CloudPolicyCacheBase* policy_cache); | 74 CloudPolicyCacheBase* policy_cache, |
| 75 const std::string& device_management_url); |
75 virtual ~CloudPolicySubsystem(); | 76 virtual ~CloudPolicySubsystem(); |
76 | 77 |
77 // Initializes the subsystem. The first network request will only be made | 78 // Initializes the subsystem. The first network request will only be made |
78 // after |delay_milliseconds|. It can be scheduled to be happen earlier by | 79 // after |delay_milliseconds|. It can be scheduled to be happen earlier by |
79 // calling |ScheduleInitialization|. | 80 // calling |ScheduleInitialization|. |
80 void CompleteInitialization(const char* refresh_pref_name, | 81 void CompleteInitialization(const char* refresh_pref_name, |
81 int64 delay_milliseconds); | 82 int64 delay_milliseconds); |
82 | 83 |
83 // Shuts the subsystem down. This must be called before threading and network | 84 // Shuts the subsystem down. This must be called before threading and network |
84 // infrastructure goes away. | 85 // infrastructure goes away. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 154 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
154 | 155 |
155 std::string device_management_url_; | 156 std::string device_management_url_; |
156 | 157 |
157 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 158 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
158 }; | 159 }; |
159 | 160 |
160 } // namespace policy | 161 } // namespace policy |
161 | 162 |
162 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 163 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
OLD | NEW |