Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Side by Side Diff: chrome/browser/ui/android/infobars/infobar_android.h

Issue 2226633002: Add a feature to display a persistence toggle for permission prompts on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address nits, verbal change to make it geolocation-only Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/android/jni_weak_ref.h"
11 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
12 #include "base/compiler_specific.h"
13 #include "base/macros.h" 11 #include "base/macros.h"
14 #include "components/infobars/core/infobar.h" 12 #include "components/infobars/core/infobar.h"
15 13
16 class InfoBarService; 14 class InfoBarService;
17 15
18 namespace infobars { 16 namespace infobars {
19 class InfoBarDelegate; 17 class InfoBarDelegate;
20 } 18 }
21 19
22 class InfoBarAndroid : public infobars::InfoBar { 20 class InfoBarAndroid : public infobars::InfoBar {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 private: 81 private:
84 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_; 82 base::android::ScopedJavaGlobalRef<jobject> java_info_bar_;
85 83
86 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid); 84 DISALLOW_COPY_AND_ASSIGN(InfoBarAndroid);
87 }; 85 };
88 86
89 // Registers the NativeInfoBar's native methods through JNI. 87 // Registers the NativeInfoBar's native methods through JNI.
90 bool RegisterNativeInfoBar(JNIEnv* env); 88 bool RegisterNativeInfoBar(JNIEnv* env);
91 89
92 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_ 90 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698