Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: components/policy/core/common/policy_provider_android_delegate.h

Issue 155923002: Add a platform policy provider for Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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/basictypes.h"
9 #include "base/compiler_specific.h"
10 #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.
11 #include "components/policy/core/common/configuration_policy_provider.h"
12 #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.
13
14 namespace policy {
15
16 // A delegate for the Android policy provider. This class is responsible for
17 // setting policies on the PolicyProviderAndroid and refreshing them on demand.
18 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
19 public:
20 // Called to refresh policies.
21 virtual void RefreshPolicies() = 0;
22
23 // Called before the provider is destroyed.
24 virtual void PolicyProviderShutdown() = 0;
25
26 protected:
27 virtual ~PolicyProviderAndroidDelegate() {}
28 };
29
30 } // namespace policy
31
32 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698