Ignore title parameter for navigator.registerProtocolHandler
[chromium-blink-merge.git] / components / policy / core / common / policy_provider_android.h
blobf2fbefb493f1c2460f5a2e7413ef7052de0408df
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_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_H_
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "components/policy/core/common/configuration_policy_provider.h"
12 namespace policy {
14 class PolicyProviderAndroidDelegate;
16 // Provider for policies set by the Android platform.
17 class POLICY_EXPORT PolicyProviderAndroid : public ConfigurationPolicyProvider {
18 public:
19 PolicyProviderAndroid();
20 virtual ~PolicyProviderAndroid();
22 // Call this method to tell the policy system whether it should wait for
23 // policies to be loaded by this provider. If this method is called,
24 // IsInitializationComplete() will only return true after SetPolicies() has
25 // been called at least once, otherwise it will return true immediately.
26 static void SetShouldWaitForPolicy(bool should_wait_for_policy);
28 void SetDelegate(PolicyProviderAndroidDelegate* delegate);
29 void SetPolicies(scoped_ptr<PolicyBundle> policy);
31 // ConfigurationPolicyProvider:
32 virtual void Shutdown() OVERRIDE;
33 virtual bool IsInitializationComplete(PolicyDomain domain) const OVERRIDE;
34 virtual void RefreshPolicies() OVERRIDE;
36 private:
37 PolicyProviderAndroidDelegate* delegate_;
38 bool initialized_;
40 DISALLOW_COPY_AND_ASSIGN(PolicyProviderAndroid);
43 } // namespace policy
45 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_PROVIDER_ANDROID_H_