chromium/chrome/browser/ui/views/side_panel/companion/exps_registration_success_observer.h

// Copyright 2023 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_UI_VIEWS_SIDE_PANEL_COMPANION_EXPS_REGISTRATION_SUCCESS_OBSERVER_H_
#define CHROME_BROWSER_UI_VIEWS_SIDE_PANEL_COMPANION_EXPS_REGISTRATION_SUCCESS_OBSERVER_H_

#include <vector>

#include "base/gtest_prod_util.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
#include "url/gurl.h"

class PrefService;

namespace content {
class Page;
class WebContents;
}  // namespace content

namespace companion {

// An observer that observes page navigations on a tab and determines if the
// user has laned on the success page of exps registration. Additionally, it
// also keeps a watch for navigations in active tab and shows an IPH if
// crieterias match.
class ExpsRegistrationSuccessObserver
    : public content::WebContentsObserver,
      public content::WebContentsUserData<ExpsRegistrationSuccessObserver> {};

}  // namespace companion

#endif  // CHROME_BROWSER_UI_VIEWS_SIDE_PANEL_COMPANION_EXPS_REGISTRATION_SUCCESS_OBSERVER_H_