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

Unified Diff: chrome/browser/chromeos/attestation/attestation_ca_client.h

Issue 12556004: Created AttestationPolicyObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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: chrome/browser/chromeos/attestation/attestation_ca_client.h
diff --git a/chrome/browser/chromeos/attestation/attestation_ca_client.h b/chrome/browser/chromeos/attestation/attestation_ca_client.h
new file mode 100644
index 0000000000000000000000000000000000000000..8c5a6761d777631057bc7490d00a02a3fab464db
--- /dev/null
+++ b/chrome/browser/chromeos/attestation/attestation_ca_client.h
@@ -0,0 +1,37 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_
+#define CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_
+
+#include <string>
+
+#include "base/basictypes.h"
+
+#include "chromeos/attestation/attestation_flow.h"
+
+namespace chromeos {
+namespace attestation {
+
+// This class is a ServerProxy implementation for the Chrome OS attestation
+// flow. It sends all requests to an Attestation CA via HTTPS.
+class AttestationCAClient : public ServerProxy {
+ public:
+ AttestationCAClient();
+ virtual ~AttestationCAClient();
+
+ // chromeos::attestation::ServerProxy:
+ virtual void SendEnrollRequest(const std::string& request,
+ const DataCallback& on_response) OVERRIDE;
+ virtual void SendCertificateRequest(const std::string& request,
+ const DataCallback& on_response) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(AttestationCAClient);
+};
+
+} // namespace attestation
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_
« no previous file with comments | « chrome/browser/chromeos/attestation/OWNERS ('k') | chrome/browser/chromeos/attestation/attestation_ca_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698