| Index: chrome/browser/ui/android/infobars/permission_infobar.h
|
| diff --git a/chrome/browser/ui/android/infobars/permission_infobar.h b/chrome/browser/ui/android/infobars/permission_infobar.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7afd90aa1e85fadc908e0244bd95262feedeffb1
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/android/infobars/permission_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_PERMISSION_INFOBAR_H_
|
| +#define CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_
|
| +
|
| +#include "base/android/scoped_java_ref.h"
|
| +#include "base/macros.h"
|
| +#include "chrome/browser/ui/android/infobars/confirm_infobar.h"
|
| +
|
| +class PermissionInfobarDelegate;
|
| +
|
| +class PermissionInfoBar : public ConfirmInfoBar {
|
| + public:
|
| + explicit PermissionInfoBar(
|
| + std::unique_ptr<PermissionInfobarDelegate> delegate);
|
| + ~PermissionInfoBar() override;
|
| +
|
| + protected:
|
| + PermissionInfobarDelegate* GetDelegate();
|
| +
|
| + // InfoBarAndroid overrides.
|
| + base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(
|
| + JNIEnv* env) override;
|
| +
|
| + private:
|
| + void ProcessButton(int action) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(PermissionInfoBar);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_PERMISSION_INFOBAR_H_
|
|
|