Update V8 to version 4.6.62.
[chromium-blink-merge.git] / components / policy / core / common / policy_service_stub.h
blobc049b0d22b9b5e9fdf0043b60cf08fb43a257e55
1 // Copyright (c) 2012 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_SERVICE_STUB_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_
8 #include "base/basictypes.h"
9 #include "components/policy/core/common/policy_map.h"
10 #include "components/policy/core/common/policy_service.h"
11 #include "components/policy/policy_export.h"
13 namespace policy {
15 // A stub implementation, that is used when ENABLE_CONFIGURATION_POLICY is not
16 // set. This allows client code to compile without requiring #ifdefs.
17 class POLICY_EXPORT PolicyServiceStub : public PolicyService {
18 public:
19 PolicyServiceStub();
20 ~PolicyServiceStub() override;
22 void AddObserver(PolicyDomain domain,
23 Observer* observer) override;
25 void RemoveObserver(PolicyDomain domain,
26 Observer* observer) override;
28 const PolicyMap& GetPolicies(
29 const PolicyNamespace& ns) const override;
31 bool IsInitializationComplete(PolicyDomain domain) const override;
33 void RefreshPolicies(const base::Closure& callback) override;
34 private:
35 const PolicyMap kEmpty_;
37 DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub);
40 } // namespace policy
42 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_