#include "components/invalidation/profile_invalidation_provider.h"
#include <utility>
#include "components/invalidation/impl/invalidation_prefs.h"
#include "components/invalidation/invalidation_factory.h"
#include "components/invalidation/invalidation_listener.h"
#include "components/invalidation/public/invalidation_service.h"
#include "components/keyed_service/core/keyed_service.h"
#include "components/pref_registry/pref_registry_syncable.h"
namespace invalidation {
ProfileInvalidationProvider::ProfileInvalidationProvider(
std::unique_ptr<IdentityProvider> identity_provider,
InvalidationServiceOrListenerFactory
invalidation_service_or_listener_factory)
: … { … }
ProfileInvalidationProvider::~ProfileInvalidationProvider() = default;
IdentityProvider* ProfileInvalidationProvider::GetIdentityProvider() { … }
std::variant<InvalidationService*, InvalidationListener*>
ProfileInvalidationProvider::GetInvalidationServiceOrListener(
const std::string& sender_id,
const std::string& project_id) { … }
void ProfileInvalidationProvider::Shutdown() { … }
void ProfileInvalidationProvider::RegisterProfilePrefs(
user_prefs::PrefRegistrySyncable* registry) { … }
}