#include "components/autofill/content/browser/content_autofill_shared_storage_handler.h"
#include "base/base64.h"
#include "base/functional/bind.h"
#include "base/metrics/histogram_macros.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/content/browser/autofill_shared_storage.pb.h"
#include "components/autofill/content/common/content_autofill_features.h"
#include "components/autofill/core/browser/data_model/credit_card.h"
#include "components/autofill/core/browser/payments/payments_service_url.h"
namespace autofill {
namespace {
constexpr char16_t kAutofillServerCardDataSharedStorageKey[] = …;
std::u16string EncodeServerCardDataForSharedStorage(
const std::vector<std::unique_ptr<CreditCard>>& server_card_data) { … }
}
ContentAutofillSharedStorageHandler::ContentAutofillSharedStorageHandler(
storage::SharedStorageManager& shared_storage_manager)
: … { … }
ContentAutofillSharedStorageHandler::~ContentAutofillSharedStorageHandler() =
default;
void ContentAutofillSharedStorageHandler::OnServerCardDataRefreshed(
const std::vector<std::unique_ptr<CreditCard>>& server_card_data) { … }
void ContentAutofillSharedStorageHandler::ClearAutofillSharedStorageData() { … }
void ContentAutofillSharedStorageHandler::
OnSharedStorageSetAutofillDataComplete(
storage::SharedStorageManager::OperationResult result) { … }
}