chromium/chrome/browser/engagement/history_aware_site_engagement_service.h

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

#ifndef CHROME_BROWSER_ENGAGEMENT_HISTORY_AWARE_SITE_ENGAGEMENT_SERVICE_H_
#define CHROME_BROWSER_ENGAGEMENT_HISTORY_AWARE_SITE_ENGAGEMENT_SERVICE_H_

#include <set>

#include "base/scoped_observation.h"
#include "components/history/core/browser/history_service.h"
#include "components/history/core/browser/history_service_observer.h"
#include "components/site_engagement/content/site_engagement_service.h"

namespace content {
class BrowserContext;
}

namespace site_engagement {

// A version of SiteEngagementService that observes changes to (deletions of)
// history.
class HistoryAwareSiteEngagementService
    : public SiteEngagementService,
      public history::HistoryServiceObserver {};

}  // namespace site_engagement

#endif  // CHROME_BROWSER_ENGAGEMENT_HISTORY_AWARE_SITE_ENGAGEMENT_SERVICE_H_