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_REFRESH_SCHEDULER_H_ | 5 #ifndef CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_REFRESH_SCHEDULER_H_ |
6 #define CHROME_BROWSER_POLICY_CLOUD_POLICY_REFRESH_SCHEDULER_H_ | 6 #define CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_REFRESH_SCHEDULER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/time.h" | 11 #include "base/time.h" |
12 #include "chrome/browser/policy/cloud_policy_client.h" | 12 #include "chrome/browser/policy/cloud/cloud_policy_client.h" |
13 #include "chrome/browser/policy/cloud_policy_store.h" | 13 #include "chrome/browser/policy/cloud/cloud_policy_store.h" |
14 #include "net/base/network_change_notifier.h" | 14 #include "net/base/network_change_notifier.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class TaskRunner; | 17 class TaskRunner; |
18 } | 18 } |
19 | 19 |
20 namespace policy { | 20 namespace policy { |
21 | 21 |
22 // Observes CloudPolicyClient and CloudPolicyStore to trigger periodic policy | 22 // Observes CloudPolicyClient and CloudPolicyStore to trigger periodic policy |
23 // fetches and issue retries on error conditions. | 23 // fetches and issue retries on error conditions. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 int64 error_retry_delay_ms_; | 96 int64 error_retry_delay_ms_; |
97 | 97 |
98 // The refresh delay. | 98 // The refresh delay. |
99 int64 refresh_delay_ms_; | 99 int64 refresh_delay_ms_; |
100 | 100 |
101 DISALLOW_COPY_AND_ASSIGN(CloudPolicyRefreshScheduler); | 101 DISALLOW_COPY_AND_ASSIGN(CloudPolicyRefreshScheduler); |
102 }; | 102 }; |
103 | 103 |
104 } // namespace policy | 104 } // namespace policy |
105 | 105 |
106 #endif // CHROME_BROWSER_POLICY_CLOUD_POLICY_REFRESH_SCHEDULER_H_ | 106 #endif // CHROME_BROWSER_POLICY_CLOUD_CLOUD_POLICY_REFRESH_SCHEDULER_H_ |
OLD | NEW |