| Index: chrome/browser/ui/android/infobars/instant_apps_infobar.h
|
| diff --git a/chrome/browser/ui/android/infobars/instant_apps_infobar.h b/chrome/browser/ui/android/infobars/instant_apps_infobar.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bd7ecfba199906f1c72d07ae50b3f68b1715dd3b
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/android/infobars/instant_apps_infobar.h
|
| @@ -0,0 +1,33 @@
|
| +// 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 CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
|
| +#define CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/android/instantapps/instant_apps_infobar_delegate.h"
|
| +#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
|
| +
|
| +class InstantAppsInfoBar : public ConfirmInfoBar {
|
| + public:
|
| + InstantAppsInfoBar(
|
| + std::unique_ptr<InstantAppsInfoBarDelegate> delegate);
|
| +
|
| + ~InstantAppsInfoBar() override;
|
| +
|
| + private:
|
| + // ConfimInfoBar:
|
| + base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
|
| + JNIEnv* env) override;
|
| +
|
| + base::android::ScopedJavaGlobalRef<jobject> java_infobar_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(InstantAppsInfoBar);
|
| +};
|
| +
|
| +// Register native methods.
|
| +bool RegisterInstantAppInfoBar(JNIEnv* env);
|
| +
|
| +#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INSTANT_APPS_INFOBAR_H_
|
|
|