| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_DOWNLOAD_OVERWRITE_INFOBAR_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ |
| 7 | 7 |
| 8 #include "base/android/scoped_java_ref.h" | 8 #include "base/android/scoped_java_ref.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/browser/ui/android/infobars/infobar_android.h" | 10 #include "chrome/browser/ui/android/infobars/infobar_android.h" |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 // InfoBarAndroid: | 32 // InfoBarAndroid: |
| 33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( | 33 base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar( |
| 34 JNIEnv* env) override; | 34 JNIEnv* env) override; |
| 35 void ProcessButton(int action) override; | 35 void ProcessButton(int action) override; |
| 36 | 36 |
| 37 chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate(); | 37 chrome::android::DownloadOverwriteInfoBarDelegate* GetDelegate(); |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar); | 39 DISALLOW_COPY_AND_ASSIGN(DownloadOverwriteInfoBar); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 // Registers the native methods through JNI. | |
| 43 bool RegisterDownloadOverwriteInfoBarDelegate(JNIEnv* env); | |
| 44 | |
| 45 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ | 42 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_DOWNLOAD_OVERWRITE_INFOBAR_H_ |
| OLD | NEW |