#include "components/sharing_message/vapid_key_manager.h"
#include "base/feature_list.h"
#include "components/sharing_message/features.h"
#include "components/sharing_message/sharing_sync_preference.h"
#include "components/sync/service/sync_service.h"
#include "crypto/ec_private_key.h"
VapidKeyManager::VapidKeyManager(SharingSyncPreference* sharing_sync_preference,
syncer::SyncService* sync_service)
: … { … }
VapidKeyManager::~VapidKeyManager() = default;
crypto::ECPrivateKey* VapidKeyManager::GetOrCreateKey() { … }
bool VapidKeyManager::RefreshCachedKey() { … }
bool VapidKeyManager::UpdateCachedKey(
std::unique_ptr<crypto::ECPrivateKey> new_key) { … }
bool VapidKeyManager::InitWithPreference() { … }