#include "chrome/browser/ui/shared_highlighting/shared_highlighting_promo.h"
#include <memory>
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_window.h"
#include "components/feature_engagement/public/feature_constants.h"
#include "components/user_education/common/feature_promo_controller.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "mojo/public/cpp/bindings/pending_remote.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "services/service_manager/public/cpp/interface_provider.h"
namespace {
void OnGetExistingSelectorsComplete(
base::WeakPtr<user_education::FeaturePromoController>
feature_promo_controller,
const std::vector<std::string>& selectors) { … }
}
SharedHighlightingPromo::SharedHighlightingPromo(
content::WebContents* web_contents)
: … { … }
SharedHighlightingPromo::~SharedHighlightingPromo() = default;
void SharedHighlightingPromo::DidFinishLoad(
content::RenderFrameHost* render_frame_host,
const GURL& validated_url) { … }
void SharedHighlightingPromo::CheckExistingSelectors(
content::RenderFrameHost* render_frame_host) { … }
bool SharedHighlightingPromo::HasTextFragment(std::string url) { … }
WEB_CONTENTS_USER_DATA_KEY_IMPL(SharedHighlightingPromo);