Index: chrome/browser/chromeos/attestation/attestation_policy_observer.h |
diff --git a/chrome/browser/chromeos/attestation/attestation_policy_observer.h b/chrome/browser/chromeos/attestation/attestation_policy_observer.h |
index 368ac59775a4320bffd76bf60cd61ff539a68669..a05471ea3129114b0bb5bf87d956220cd9793fba 100644 |
--- a/chrome/browser/chromeos/attestation/attestation_policy_observer.h |
+++ b/chrome/browser/chromeos/attestation/attestation_policy_observer.h |
@@ -8,6 +8,7 @@ |
#include <string> |
#include "base/basictypes.h" |
+#include "base/callback.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/memory/weak_ptr.h" |
#include "content/public/browser/notification_observer.h" |
@@ -68,7 +69,18 @@ class AttestationPolicyObserver : public content::NotificationObserver { |
void UploadCertificate(const std::string& certificate); |
// Checks if a certificate has already been uploaded and, if not, upload. |
- void CheckIfUploaded(const std::string& certificate); |
+ void CheckIfUploaded(const std::string& certificate, |
+ const std::string& key_payload); |
+ |
+ // Gets the payload associated with the EMK and sends it to |callback|. |
+ void GetKeyPayload(base::Callback<void(const std::string&)> callback); |
+ |
+ // Called when a certificate upload operation completes. On success, |status| |
+ // will be true. |
+ void OnUploadComplete(bool status); |
+ |
+ // Marks a key as uploaded in the payload proto. |
+ void MarkAsUploaded(const std::string& key_payload); |
CrosSettings* cros_settings_; |
policy::CloudPolicyClient* policy_client_; |