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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_manager.h

Issue 666133002: Standardize usage of virtual/override/final in components/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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_CLOUD_CLOUD_POLICY_MANAGER_H_ 5 #ifndef COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ 6 #define COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // |file_task_runner| is used for file operations. Currently this must be the 48 // |file_task_runner| is used for file operations. Currently this must be the
49 // FILE BrowserThread. 49 // FILE BrowserThread.
50 // |io_task_runner| is used for network IO. Currently this must be the IO 50 // |io_task_runner| is used for network IO. Currently this must be the IO
51 // BrowserThread. 51 // BrowserThread.
52 CloudPolicyManager( 52 CloudPolicyManager(
53 const PolicyNamespaceKey& policy_ns_key, 53 const PolicyNamespaceKey& policy_ns_key,
54 CloudPolicyStore* cloud_policy_store, 54 CloudPolicyStore* cloud_policy_store,
55 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 55 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
56 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner, 56 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner,
57 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); 57 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
58 virtual ~CloudPolicyManager(); 58 ~CloudPolicyManager() override;
59 59
60 CloudPolicyCore* core() { return &core_; } 60 CloudPolicyCore* core() { return &core_; }
61 const CloudPolicyCore* core() const { return &core_; } 61 const CloudPolicyCore* core() const { return &core_; }
62 62
63 // ConfigurationPolicyProvider: 63 // ConfigurationPolicyProvider:
64 virtual void Shutdown() override; 64 void Shutdown() override;
65 virtual bool IsInitializationComplete(PolicyDomain domain) const override; 65 bool IsInitializationComplete(PolicyDomain domain) const override;
66 virtual void RefreshPolicies() override; 66 void RefreshPolicies() override;
67 67
68 // CloudPolicyStore::Observer: 68 // CloudPolicyStore::Observer:
69 virtual void OnStoreLoaded(CloudPolicyStore* cloud_policy_store) override; 69 void OnStoreLoaded(CloudPolicyStore* cloud_policy_store) override;
70 virtual void OnStoreError(CloudPolicyStore* cloud_policy_store) override; 70 void OnStoreError(CloudPolicyStore* cloud_policy_store) override;
71 71
72 // ComponentCloudPolicyService::Delegate: 72 // ComponentCloudPolicyService::Delegate:
73 virtual void OnComponentCloudPolicyUpdated() override; 73 void OnComponentCloudPolicyUpdated() override;
74 74
75 protected: 75 protected:
76 // Check whether fully initialized and if so, publish policy by calling 76 // Check whether fully initialized and if so, publish policy by calling
77 // ConfigurationPolicyStore::UpdatePolicy(). 77 // ConfigurationPolicyStore::UpdatePolicy().
78 void CheckAndPublishPolicy(); 78 void CheckAndPublishPolicy();
79 79
80 // Writes Chrome policy into |policy_map|. This is intended to be overridden 80 // Writes Chrome policy into |policy_map|. This is intended to be overridden
81 // by subclasses that want to post-process policy before publishing it. The 81 // by subclasses that want to post-process policy before publishing it. The
82 // default implementation just copies over |store()->policy_map()|. 82 // default implementation just copies over |store()->policy_map()|.
83 virtual void GetChromePolicy(PolicyMap* policy_map); 83 virtual void GetChromePolicy(PolicyMap* policy_map);
(...skipping 28 matching lines...) Expand all
112 112
113 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 113 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
114 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 114 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
115 115
116 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 116 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
117 }; 117 };
118 118
119 } // namespace policy 119 } // namespace policy
120 120
121 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ 121 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698