chromium/chrome/browser/user_annotations/user_annotations_web_contents_observer.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 CHROME_BROWSER_USER_ANNOTATIONS_USER_ANNOTATIONS_WEB_CONTENTS_OBSERVER_H_
#define CHROME_BROWSER_USER_ANNOTATIONS_USER_ANNOTATIONS_WEB_CONTENTS_OBSERVER_H_

#include <memory>

#include "base/memory/raw_ref.h"
#include "base/memory/weak_ptr.h"
#include "components/autofill/content/browser/scoped_autofill_managers_observation.h"
#include "components/autofill/core/browser/autofill_manager.h"

namespace ui {
struct AXTreeUpdate;
}  // namespace ui

namespace user_annotations {

class UserAnnotationsService;

// A class that listens to events that may require persisting a user annotation,
// such as a form submission, and propagates them to the
// `UserAnnotationsKeyedService` for persistence.
class UserAnnotationsWebContentsObserver
    : public autofill::AutofillManager::Observer {};

}  // namespace user_annotations

#endif  // CHROME_BROWSER_USER_ANNOTATIONS_USER_ANNOTATIONS_WEB_CONTENTS_OBSERVER_H_