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

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

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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_CONTAINER_ANDROID_H_ 5 #ifndef CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_CONTAINER_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_CONTAINER_ANDROID_H_ 6 #define CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_CONTAINER_ANDROID_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 12
13 #include "base/android/jni_weak_ref.h" 13 #include "base/android/jni_weak_ref.h"
14 #include "base/android/scoped_java_ref.h" 14 #include "base/android/scoped_java_ref.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "components/infobars/core/infobar_container.h" 17 #include "components/infobars/core/infobar_container.h"
18 18
19 class InfoBarAndroid; 19 class InfoBarAndroid;
20 20
21 namespace content {
22 class WebContents;
23 }
24
25 class InfoBarContainerAndroid : public infobars::InfoBarContainer { 21 class InfoBarContainerAndroid : public infobars::InfoBarContainer {
26 public: 22 public:
27 InfoBarContainerAndroid(JNIEnv* env, 23 InfoBarContainerAndroid(JNIEnv* env,
28 jobject infobar_container); 24 jobject infobar_container);
29 void SetWebContents(JNIEnv* env, 25 void SetWebContents(JNIEnv* env,
30 const base::android::JavaParamRef<jobject>& obj, 26 const base::android::JavaParamRef<jobject>& obj,
31 const base::android::JavaParamRef<jobject>& web_contents); 27 const base::android::JavaParamRef<jobject>& web_contents);
32 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj); 28 void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
33 29
34 JavaObjectWeakGlobalRef java_container() const { 30 JavaObjectWeakGlobalRef java_container() const {
(...skipping 18 matching lines...) Expand all
53 // us. 49 // us.
54 JavaObjectWeakGlobalRef weak_java_infobar_container_; 50 JavaObjectWeakGlobalRef weak_java_infobar_container_;
55 51
56 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerAndroid); 52 DISALLOW_COPY_AND_ASSIGN(InfoBarContainerAndroid);
57 }; 53 };
58 54
59 // Registers the InfoBarContainer's native methods through JNI. 55 // Registers the InfoBarContainer's native methods through JNI.
60 bool RegisterInfoBarContainer(JNIEnv* env); 56 bool RegisterInfoBarContainer(JNIEnv* env);
61 57
62 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_CONTAINER_ANDROID_H_ 58 #endif // CHROME_BROWSER_UI_ANDROID_INFOBARS_INFOBAR_CONTAINER_ANDROID_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/infobar_android.h ('k') | chrome/browser/ui/android/tab_model/tab_model_jni_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698