blob: 053e0b52f119ec2f347b0ea7d5f4d1f7f79a6138 [file]
// 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 CHROME_BROWSER_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_ANDROID_H_
#define CHROME_BROWSER_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_ANDROID_H_
#include "base/android/scoped_java_ref.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
class SyncErrorInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
public:
SyncErrorInfoBarDelegateAndroid();
SyncErrorInfoBarDelegateAndroid(const SyncErrorInfoBarDelegateAndroid&) =
delete;
SyncErrorInfoBarDelegateAndroid& operator=(
const SyncErrorInfoBarDelegateAndroid&) = delete;
~SyncErrorInfoBarDelegateAndroid() override;
// ConfirmInfoBarDelegate:
infobars::InfoBarDelegate::InfoBarIdentifier GetIdentifier() const override;
std::u16string GetMessageText() const override;
bool Accept() override;
void InfoBarDismissed() override;
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(JNIEnv* env);
private:
base::android::ScopedJavaGlobalRef<jobject> java_delegate_;
};
#endif // CHROME_BROWSER_SYNC_SYNC_ERROR_INFOBAR_DELEGATE_ANDROID_H_