11 #ifndef MEDIA_BASE_HTTP_KEY_FETCHER_H_
12 #define MEDIA_BASE_HTTP_KEY_FETCHER_H_
14 #include "packager/base/compiler_specific.h"
15 #include "packager/media/base/key_fetcher.h"
16 #include "packager/status.h"
37 const std::string& request,
38 std::string* response)
override;
45 virtual Status Get(
const std::string& url, std::string* response);
53 const std::string& data,
54 std::string* response);
62 const std::string& private_key_file,
63 const std::string& private_key_password) {
64 client_cert_file_ = cert_file;
65 client_cert_private_key_file_ = private_key_file;
66 client_cert_private_key_password_ = private_key_password;
82 Status FetchInternal(HttpMethod method,
const std::string& url,
83 const std::string& data, std::string* response);
85 const uint32_t timeout_in_seconds_;
87 std::string client_cert_file_;
88 std::string client_cert_private_key_file_;
89 std::string client_cert_private_key_password_;
97 #endif // MEDIA_BASE_HTTP_KEY_FETCHER_H_