Chromium Code Reviews| Index: components/policy/core/common/policy_provider_android_delegate.h |
| diff --git a/components/policy/core/common/policy_provider_android_delegate.h b/components/policy/core/common/policy_provider_android_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..24706ff2ea5669f70ac31043d92fa7aa1e8f7274 |
| --- /dev/null |
| +++ b/components/policy/core/common/policy_provider_android_delegate.h |
| @@ -0,0 +1,32 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |
| +#define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/weak_ptr.h" |
|
Joao da Silva
2014/02/05 20:22:26
not used
Bernhard Bauer
2014/02/06 15:00:18
Removed.
|
| +#include "components/policy/core/common/configuration_policy_provider.h" |
| +#include "components/policy/core/common/policy_service.h" |
|
Joao da Silva
2014/02/05 20:22:26
not used
Bernhard Bauer
2014/02/06 15:00:18
Removed.
|
| + |
| +namespace policy { |
| + |
| +// A delegate for the Android policy provider. This class is responsible for |
| +// setting policies on the PolicyProviderAndroid and refreshing them on demand. |
| +class POLICY_EXPORT PolicyProviderAndroidDelegate { |
|
Joao da Silva
2014/02/05 20:22:26
We usually have Observers and Delegates like this
Bernhard Bauer
2014/02/05 22:20:19
Hm, currently the lifetime of the delegate is coup
|
| + public: |
| + // Called to refresh policies. |
| + virtual void RefreshPolicies() = 0; |
| + |
| + // Called before the provider is destroyed. |
| + virtual void PolicyProviderShutdown() = 0; |
| + |
| + protected: |
| + virtual ~PolicyProviderAndroidDelegate() {} |
| +}; |
| + |
| +} // namespace policy |
| + |
| +#endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_ |