blob: 0d46b4fc7e0a087f7f8446eec30f60129aa8f460 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_ADS_BLOCKED_INFOBAR_H_
#define COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_ADS_BLOCKED_INFOBAR_H_
#include "base/macros.h"
#include "components/infobars/android/confirm_infobar.h"
#include "components/subresource_filter/content/browser/ads_blocked_infobar_delegate.h"
namespace subresource_filter {
class AdsBlockedInfoBar : public infobars::ConfirmInfoBar {
public:
explicit AdsBlockedInfoBar(
std::unique_ptr<AdsBlockedInfobarDelegate> delegate);
~AdsBlockedInfoBar() override;
private:
// ConfirmInfoBar:
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
JNIEnv* env,
const ResourceIdMapper& resource_id_mapper) override;
DISALLOW_COPY_AND_ASSIGN(AdsBlockedInfoBar);
};
} // namespace subresource_filter
#endif // COMPONENTS_SUBRESOURCE_FILTER_CONTENT_BROWSER_ADS_BLOCKED_INFOBAR_H_