chromium/components/safe_browsing/content/browser/triggers/trigger_util.h

// Copyright 2019 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_SAFE_BROWSING_CONTENT_BROWSER_TRIGGERS_TRIGGER_UTIL_H_
#define COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_TRIGGERS_TRIGGER_UTIL_H_

#include "url/gurl.h"

// This file contains some useful utilities for the safe_browsing/triggers
// classes
namespace content {
class RenderFrameHost;
}

namespace safe_browsing {

// Based on heuristics, guesses whether |render_frame_host| is showing a Google
// Ad, or the |frame_url| is a Google Ad URL.
bool DetectGoogleAd(content::RenderFrameHost* render_frame_host,
                    const GURL& frame_url);

}  // namespace safe_browsing

#endif  // COMPONENTS_SAFE_BROWSING_CONTENT_BROWSER_TRIGGERS_TRIGGER_UTIL_H_