blob: 19a5e05e951578192ef18486381dbc49020fc9d9 [file] [log] [blame]
// Copyright 2020 The Chromium OS 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 ATTESTATION_PCA_AGENT_SERVER_PCA_HTTP_UTILS_H_
#define ATTESTATION_PCA_AGENT_SERVER_PCA_HTTP_UTILS_H_
#include <string>
#include <brillo/http/http_proxy.h>
#include <brillo/http/http_utils.h>
namespace attestation {
namespace pca_agent {
// All the http-related function calls that needs polymorphism are put here.
class PcaHttpUtils {
public:
PcaHttpUtils() = default;
PcaHttpUtils(const PcaHttpUtils&) = delete;
PcaHttpUtils& operator=(const PcaHttpUtils&) = delete;
virtual ~PcaHttpUtils() = default;
// An interface that is related to |brillo::http::GetChromeProxyServersAsync|.
virtual void GetChromeProxyServersAsync(
const std::string& url,
const brillo::http::GetChromeProxyServersCallback& callback) = 0;
};
} // namespace pca_agent
} // namespace attestation
#endif // ATTESTATION_PCA_AGENT_SERVER_PCA_HTTP_UTILS_H_