| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include <stdint.h> |
| 9 |
| 9 #include "base/macros.h" | 10 #include "base/macros.h" |
| 10 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 11 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provide
r.h" | 12 #include "chrome/browser/chromeos/policy/affiliated_invalidation_service_provide
r.h" |
| 12 #include "policy/proto/device_management_backend.pb.h" | 13 #include "policy/proto/device_management_backend.pb.h" |
| 13 | 14 |
| 14 namespace invalidation { | 15 namespace invalidation { |
| 15 class InvalidationService; | 16 class InvalidationService; |
| 16 } | 17 } |
| 17 | 18 |
| 18 namespace policy { | 19 namespace policy { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 | 51 |
| 51 // Destroy the current |CloudPolicyInvalidator|, if any. | 52 // Destroy the current |CloudPolicyInvalidator|, if any. |
| 52 void DestroyInvalidator(); | 53 void DestroyInvalidator(); |
| 53 | 54 |
| 54 const enterprise_management::DeviceRegisterRequest::Type type_; | 55 const enterprise_management::DeviceRegisterRequest::Type type_; |
| 55 CloudPolicyCore* const core_; | 56 CloudPolicyCore* const core_; |
| 56 | 57 |
| 57 AffiliatedInvalidationServiceProvider* const invalidation_service_provider_; | 58 AffiliatedInvalidationServiceProvider* const invalidation_service_provider_; |
| 58 | 59 |
| 59 // The highest invalidation version that was handled already. | 60 // The highest invalidation version that was handled already. |
| 60 int64 highest_handled_invalidation_version_; | 61 int64_t highest_handled_invalidation_version_; |
| 61 | 62 |
| 62 // The current |CloudPolicyInvalidator|. nullptr if no connected invalidation | 63 // The current |CloudPolicyInvalidator|. nullptr if no connected invalidation |
| 63 // service is available. | 64 // service is available. |
| 64 scoped_ptr<CloudPolicyInvalidator> invalidator_; | 65 scoped_ptr<CloudPolicyInvalidator> invalidator_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(AffiliatedCloudPolicyInvalidator); | 67 DISALLOW_COPY_AND_ASSIGN(AffiliatedCloudPolicyInvalidator); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace policy | 70 } // namespace policy |
| 70 | 71 |
| 71 #endif // CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ | 72 #endif // CHROME_BROWSER_CHROMEOS_POLICY_AFFILIATED_CLOUD_POLICY_INVALIDATOR_H_ |
| OLD | NEW |