#ifndef WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_PERMISSION_CONTEXT_H_
#define WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_PERMISSION_CONTEXT_H_
#include "components/content_settings/core/common/content_settings.h"
#include "components/permissions/permission_context_base.h"
class GURL;
namespace weblayer {
class BackgroundFetchPermissionContext
: public permissions::PermissionContextBase {
public:
explicit BackgroundFetchPermissionContext(
content::BrowserContext* browser_context);
BackgroundFetchPermissionContext(
const BackgroundFetchPermissionContext& other) = delete;
BackgroundFetchPermissionContext& operator=(
const BackgroundFetchPermissionContext& other) = delete;
~BackgroundFetchPermissionContext() override = default;
private:
ContentSetting GetPermissionStatusInternal(
content::RenderFrameHost* render_frame_host,
const GURL& requesting_origin,
const GURL& embedding_origin) const override;
};
}
#endif