| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <jni.h> | 8 #include <jni.h> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/android/jni_weak_ref.h" | 11 #include "base/android/jni_weak_ref.h" |
| 12 #include "base/android/scoped_java_ref.h" | 12 #include "base/android/scoped_java_ref.h" |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "chrome/browser/ui/android/tab_model/tab_model.h" | 16 #include "chrome/browser/ui/android/tab_model/tab_model.h" |
| 17 | 17 |
| 18 class Profile; | |
| 19 class TabAndroid; | 18 class TabAndroid; |
| 20 | 19 |
| 21 namespace content { | 20 namespace content { |
| 22 class WebContents; | 21 class WebContents; |
| 23 } | 22 } |
| 24 | 23 |
| 25 // Bridges calls between the C++ and the Java TabModels. Functions in this | 24 // Bridges calls between the C++ and the Java TabModels. Functions in this |
| 26 // class should do little more than make calls out to the Java TabModel, which | 25 // class should do little more than make calls out to the Java TabModel, which |
| 27 // is what actually stores Tabs. | 26 // is what actually stores Tabs. |
| 28 class TabModelJniBridge : public TabModel { | 27 class TabModelJniBridge : public TabModel { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 const base::android::JavaParamRef<jobject>& obj); | 69 const base::android::JavaParamRef<jobject>& obj); |
| 71 | 70 |
| 72 protected: | 71 protected: |
| 73 JavaObjectWeakGlobalRef java_object_; | 72 JavaObjectWeakGlobalRef java_object_; |
| 74 | 73 |
| 75 private: | 74 private: |
| 76 DISALLOW_COPY_AND_ASSIGN(TabModelJniBridge); | 75 DISALLOW_COPY_AND_ASSIGN(TabModelJniBridge); |
| 77 }; | 76 }; |
| 78 | 77 |
| 79 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ | 78 #endif // CHROME_BROWSER_UI_ANDROID_TAB_MODEL_TAB_MODEL_JNI_BRIDGE_H_ |
| OLD | NEW |