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

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

Issue 935333004: Fix some virtual vs override issues in PolicyServiceStub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "components/policy/core/common/policy_map.h" 9 #include "components/policy/core/common/policy_map.h"
10 #include "components/policy/core/common/policy_service.h" 10 #include "components/policy/core/common/policy_service.h"
11 #include "components/policy/policy_export.h" 11 #include "components/policy/policy_export.h"
12 12
13 namespace policy { 13 namespace policy {
14 14
15 // A stub implementation, that is used when ENABLE_CONFIGURATION_POLICY is not 15 // A stub implementation, that is used when ENABLE_CONFIGURATION_POLICY is not
16 // set. This allows client code to compile without requiring #ifdefs. 16 // set. This allows client code to compile without requiring #ifdefs.
17 class POLICY_EXPORT PolicyServiceStub : public PolicyService { 17 class POLICY_EXPORT PolicyServiceStub : public PolicyService {
18 public: 18 public:
19 PolicyServiceStub(); 19 PolicyServiceStub();
20 virtual ~PolicyServiceStub(); 20 ~PolicyServiceStub() override;
21 21
22 virtual void AddObserver(PolicyDomain domain, 22 void AddObserver(PolicyDomain domain,
23 Observer* observer) override; 23 Observer* observer) override;
24 24
25 virtual void RemoveObserver(PolicyDomain domain, 25 void RemoveObserver(PolicyDomain domain,
26 Observer* observer) override; 26 Observer* observer) override;
27 27
28 virtual const PolicyMap& GetPolicies( 28 const PolicyMap& GetPolicies(
29 const PolicyNamespace& ns) const override; 29 const PolicyNamespace& ns) const override;
30 30
31 virtual bool IsInitializationComplete(PolicyDomain domain) const override; 31 bool IsInitializationComplete(PolicyDomain domain) const override;
32 32
33 virtual void RefreshPolicies(const base::Closure& callback) override; 33 void RefreshPolicies(const base::Closure& callback) override;
34 private: 34 private:
35 const PolicyMap kEmpty_; 35 const PolicyMap kEmpty_;
36 36
37 DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub); 37 DISALLOW_COPY_AND_ASSIGN(PolicyServiceStub);
38 }; 38 };
39 39
40 } // namespace policy 40 } // namespace policy
41 41
42 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_ 42 #endif // COMPONENTS_POLICY_CORE_COMMON_POLICY_SERVICE_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698