chromium/components/invalidation/invalidation_listener_impl.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_INVALIDATION_INVALIDATION_LISTENER_IMPL_H_
#define COMPONENTS_INVALIDATION_INVALIDATION_LISTENER_IMPL_H_

#include <memory>
#include <optional>
#include <string>

#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "base/time/time.h"
#include "components/gcm_driver/gcm_app_handler.h"
#include "components/gcm_driver/instance_id/instance_id.h"
#include "components/invalidation/invalidation_listener.h"
#include "net/base/backoff_entry.h"

namespace gcm {
class GCMDriver;
}

namespace instance_id {
class InstanceIDDriver;
}

namespace invalidation {

// This is the actual implementation of the `InvalidationListener`.
//
// You should not need to use this directly:
// - production code should call `InvalidationListener::Create`.
// - test code should use a mocked or fake InvalidationListener.
class InvalidationListenerImpl : public InvalidationListener,
                                 public gcm::GCMAppHandler {};

}  // namespace invalidation

#endif  // COMPONENTS_INVALIDATION_INVALIDATION_LISTENER_IMPL_H_