OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/basictypes.h" |
| 11 |
| 12 #include "chromeos/attestation/attestation_flow.h" |
| 13 |
| 14 namespace chromeos { |
| 15 namespace attestation { |
| 16 |
| 17 // This class is a ServerProxy implementation for the Chrome OS attestation |
| 18 // flow. It sends all requests to an Attestation CA via HTTPS. |
| 19 class AttestationCAClient : public ServerProxy { |
| 20 public: |
| 21 AttestationCAClient(); |
| 22 virtual ~AttestationCAClient(); |
| 23 |
| 24 // chromeos::attestation::ServerProxy: |
| 25 virtual void SendEnrollRequest(const std::string& request, |
| 26 const DataCallback& on_response) OVERRIDE; |
| 27 virtual void SendCertificateRequest(const std::string& request, |
| 28 const DataCallback& on_response) OVERRIDE; |
| 29 |
| 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(AttestationCAClient); |
| 32 }; |
| 33 |
| 34 } // namespace attestation |
| 35 } // namespace chromeos |
| 36 |
| 37 #endif // CHROME_BROWSER_CHROMEOS_ATTESTATION_ATTESTATION_CA_CLIENT_H_ |
OLD | NEW |