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

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

Issue 762863002: Removed policy::PolicyNamespaceKey. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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"
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/prefs/pref_member.h" 14 #include "base/prefs/pref_member.h"
15 #include "components/policy/core/common/cloud/cloud_policy_constants.h"
16 #include "components/policy/core/common/cloud/cloud_policy_core.h" 15 #include "components/policy/core/common/cloud/cloud_policy_core.h"
17 #include "components/policy/core/common/cloud/cloud_policy_store.h" 16 #include "components/policy/core/common/cloud/cloud_policy_store.h"
18 #include "components/policy/core/common/cloud/component_cloud_policy_service.h" 17 #include "components/policy/core/common/cloud/component_cloud_policy_service.h"
19 #include "components/policy/core/common/configuration_policy_provider.h" 18 #include "components/policy/core/common/configuration_policy_provider.h"
20 #include "components/policy/policy_export.h" 19 #include "components/policy/policy_export.h"
21 20
22 namespace base { 21 namespace base {
23 class FilePath; 22 class FilePath;
24 class SequencedTaskRunner; 23 class SequencedTaskRunner;
25 } 24 }
(...skipping 17 matching lines...) Expand all
43 : public ConfigurationPolicyProvider, 42 : public ConfigurationPolicyProvider,
44 public CloudPolicyStore::Observer, 43 public CloudPolicyStore::Observer,
45 public ComponentCloudPolicyService::Delegate { 44 public ComponentCloudPolicyService::Delegate {
46 public: 45 public:
47 // |task_runner| is the runner for policy refresh tasks. 46 // |task_runner| is the runner for policy refresh tasks.
48 // |file_task_runner| is used for file operations. Currently this must be the 47 // |file_task_runner| is used for file operations. Currently this must be the
49 // FILE BrowserThread. 48 // FILE BrowserThread.
50 // |io_task_runner| is used for network IO. Currently this must be the IO 49 // |io_task_runner| is used for network IO. Currently this must be the IO
51 // BrowserThread. 50 // BrowserThread.
52 CloudPolicyManager( 51 CloudPolicyManager(
53 const PolicyNamespaceKey& policy_ns_key, 52 const std::string& policy_type,
54 CloudPolicyStore* cloud_policy_store, 53 CloudPolicyStore* cloud_policy_store,
55 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 54 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
56 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner, 55 const scoped_refptr<base::SequencedTaskRunner>& file_task_runner,
57 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner); 56 const scoped_refptr<base::SequencedTaskRunner>& io_task_runner);
58 ~CloudPolicyManager() override; 57 ~CloudPolicyManager() override;
59 58
60 CloudPolicyCore* core() { return &core_; } 59 CloudPolicyCore* core() { return &core_; }
61 const CloudPolicyCore* core() const { return &core_; } 60 const CloudPolicyCore* core() const { return &core_; }
62 61
63 // ConfigurationPolicyProvider: 62 // ConfigurationPolicyProvider:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 111
113 scoped_refptr<base::SequencedTaskRunner> file_task_runner_; 112 scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
114 scoped_refptr<base::SequencedTaskRunner> io_task_runner_; 113 scoped_refptr<base::SequencedTaskRunner> io_task_runner_;
115 114
116 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager); 115 DISALLOW_COPY_AND_ASSIGN(CloudPolicyManager);
117 }; 116 };
118 117
119 } // namespace policy 118 } // namespace policy
120 119
121 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_ 120 #endif // COMPONENTS_POLICY_CORE_COMMON_CLOUD_CLOUD_POLICY_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698