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

Unified 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: review 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 side-by-side diff with in-line comments
Download patch
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..94f8c4b8235380770569732f541130dab663e564
--- /dev/null
+++ b/components/policy/core/common/policy_provider_android_delegate.h
@@ -0,0 +1,29 @@
+// 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/compiler_specific.h"
+
+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 {
+ public:
+ // Called to refresh policies. If this method is called, the delegate must
+ // eventually call SetPolicies on the provider.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698