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); | |
76 virtual ~CloudPolicySubsystem(); | 75 virtual ~CloudPolicySubsystem(); |
77 | 76 |
78 // Initializes the subsystem. The first network request will only be made | 77 // Initializes the subsystem. The first network request will only be made |
79 // after |delay_milliseconds|. It can be scheduled to be happen earlier by | 78 // after |delay_milliseconds|. It can be scheduled to be happen earlier by |
80 // calling |ScheduleInitialization|. | 79 // calling |ScheduleInitialization|. |
81 void CompleteInitialization(const char* refresh_pref_name, | 80 void CompleteInitialization(const char* refresh_pref_name, |
82 int64 delay_milliseconds); | 81 int64 delay_milliseconds); |
83 | 82 |
84 // Shuts the subsystem down. This must be called before threading and network | 83 // Shuts the subsystem down. This must be called before threading and network |
85 // infrastructure goes away. | 84 // infrastructure goes away. |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 scoped_ptr<CloudPolicyController> cloud_policy_controller_; | 153 scoped_ptr<CloudPolicyController> cloud_policy_controller_; |
155 | 154 |
156 std::string device_management_url_; | 155 std::string device_management_url_; |
157 | 156 |
158 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); | 157 DISALLOW_COPY_AND_ASSIGN(CloudPolicySubsystem); |
159 }; | 158 }; |
160 | 159 |
161 } // namespace policy | 160 } // namespace policy |
162 | 161 |
163 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ | 162 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_SUBSYSTEM_H_ |
OLD | NEW |