#include "third_party/libaddressinput/chromium/chrome_metadata_source.h"
#include <memory>
#include <utility>
#include "base/check.h"
#include "base/functional/bind.h"
#include "base/memory/ptr_util.h"
#include "net/base/io_buffer.h"
#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/network/public/cpp/resource_request.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "services/network/public/cpp/simple_url_loader.h"
#include "url/gurl.h"
namespace autofill {
ChromeMetadataSource::ChromeMetadataSource(
const std::string& validation_data_url,
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory)
: … { … }
ChromeMetadataSource::~ChromeMetadataSource() { … }
void ChromeMetadataSource::Get(const std::string& key,
const Callback& downloaded) const { … }
void ChromeMetadataSource::OnSimpleLoaderComplete(
RequestList::iterator it,
std::unique_ptr<std::string> response_body) { … }
ChromeMetadataSource::Request::Request(
const std::string& key,
std::unique_ptr<network::SimpleURLLoader> loader,
const Callback& callback)
: … { … }
void ChromeMetadataSource::Download(const std::string& key,
const Callback& downloaded) { … }
}