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

Unified Diff: components/policy/core/common/cloud/cloud_policy_manager.h

Issue 116273002: Added support for signed policy blobs on desktop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup from self-review + cros clang fix. Created 6 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: components/policy/core/common/cloud/cloud_policy_manager.h
diff --git a/components/policy/core/common/cloud/cloud_policy_manager.h b/components/policy/core/common/cloud/cloud_policy_manager.h
index 0a044147627b7a4edb1f09e4ee7328652906884e..a392bf0def1f64a163c3ce9e64ae24b98313b60d 100644
--- a/components/policy/core/common/cloud/cloud_policy_manager.h
+++ b/components/policy/core/common/cloud/cloud_policy_manager.h
@@ -49,6 +49,7 @@ class POLICY_EXPORT CloudPolicyManager
// BrowserThread.
CloudPolicyManager(
const PolicyNamespaceKey& policy_ns_key,
+ const std::string& verification_key_hash,
Mattias Nissler (ping if slow) 2014/01/27 13:52:13 Does this make sense here? The class itself doesn'
Andrew T Wilson (Slow) 2014/01/30 17:10:31 Yeah, I had this idea that CPM would be the holder
CloudPolicyStore* cloud_policy_store,
const scoped_refptr<base::SequencedTaskRunner>& task_runner,
const scoped_refptr<base::SequencedTaskRunner>& file_task_runner,
@@ -70,6 +71,9 @@ class POLICY_EXPORT CloudPolicyManager
// ComponentCloudPolicyService::Delegate:
virtual void OnComponentCloudPolicyUpdated() OVERRIDE;
+ // Identifier for which verification key this chrome instance uses.
+ const std::string& verification_key_hash() { return verification_key_hash_; }
+
protected:
// Check whether fully initialized and if so, publish policy by calling
// ConfigurationPolicyStore::UpdatePolicy().
@@ -103,6 +107,9 @@ class POLICY_EXPORT CloudPolicyManager
// policy update notifications are deferred until after it completes.
bool waiting_for_policy_refresh_;
+ // Identifier for which signing key is supported by this instance of Chrome.
+ std::string verification_key_hash_;
+
scoped_refptr<base::SequencedTaskRunner> file_task_runner_;
scoped_refptr<base::SequencedTaskRunner> io_task_runner_;

Powered by Google App Engine
This is Rietveld 408576698