| 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_USER_CLOUD_POLICY_STORE_H_ | 5 #ifndef CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_H_ |
| 6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_H_ | 6 #define CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 bool validate_in_background, | 58 bool validate_in_background, |
| 59 const UserCloudPolicyValidator::CompletionCallback& callback); | 59 const UserCloudPolicyValidator::CompletionCallback& callback); |
| 60 | 60 |
| 61 // Callback invoked to install a just-loaded policy after validation has | 61 // Callback invoked to install a just-loaded policy after validation has |
| 62 // finished. | 62 // finished. |
| 63 void InstallLoadedPolicyAfterValidation(UserCloudPolicyValidator* validator); | 63 void InstallLoadedPolicyAfterValidation(UserCloudPolicyValidator* validator); |
| 64 | 64 |
| 65 // Callback invoked to store the policy after validation has finished. | 65 // Callback invoked to store the policy after validation has finished. |
| 66 void StorePolicyAfterValidation(UserCloudPolicyValidator* validator); | 66 void StorePolicyAfterValidation(UserCloudPolicyValidator* validator); |
| 67 | 67 |
| 68 // Removes any policies that are not supported on desktop platforms. | |
| 69 void FilterDisallowedPolicies(); | |
| 70 | |
| 71 // WeakPtrFactory used to create callbacks for validating and storing policy. | 68 // WeakPtrFactory used to create callbacks for validating and storing policy. |
| 72 base::WeakPtrFactory<UserCloudPolicyStore> weak_factory_; | 69 base::WeakPtrFactory<UserCloudPolicyStore> weak_factory_; |
| 73 | 70 |
| 74 // Weak pointer to the profile associated with this store. | 71 // Weak pointer to the profile associated with this store. |
| 75 Profile* profile_; | 72 Profile* profile_; |
| 76 | 73 |
| 77 // Path to file where we store persisted policy. | 74 // Path to file where we store persisted policy. |
| 78 FilePath backing_file_path_; | 75 FilePath backing_file_path_; |
| 79 | 76 |
| 80 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStore); | 77 DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyStore); |
| 81 }; | 78 }; |
| 82 | 79 |
| 83 } // namespace policy | 80 } // namespace policy |
| 84 | 81 |
| 85 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_H_ | 82 #endif // CHROME_BROWSER_POLICY_USER_CLOUD_POLICY_STORE_H_ |
| OLD | NEW |