OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |
| 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 |
| 10 namespace policy { |
| 11 |
| 12 // A delegate for the Android policy provider. This class is responsible for |
| 13 // setting policies on the PolicyProviderAndroid and refreshing them on demand. |
| 14 class POLICY_EXPORT PolicyProviderAndroidDelegate { |
| 15 public: |
| 16 // Called to refresh policies. If this method is called, the delegate must |
| 17 // eventually call SetPolicies on the provider. |
| 18 virtual void RefreshPolicies() = 0; |
| 19 |
| 20 // Called before the provider is destroyed. |
| 21 virtual void PolicyProviderShutdown() = 0; |
| 22 |
| 23 protected: |
| 24 virtual ~PolicyProviderAndroidDelegate() {} |
| 25 }; |
| 26 |
| 27 } // namespace policy |
| 28 |
| 29 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |
OLD | NEW |