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.
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_
8 #include "base/compiler_specific.h"
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
{
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;
20 // Called before the provider is destroyed.
21 virtual void PolicyProviderShutdown() = 0;
24 virtual ~PolicyProviderAndroidDelegate() {}
29 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_