OLD | NEW |
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 CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 | 9 |
10 #include "base/android/scoped_java_ref.h" | 10 #include "base/android/scoped_java_ref.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 jobject /* obj */); | 70 jobject /* obj */); |
71 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject history); | 71 int GetNavigationHistory(JNIEnv* env, jobject obj, jobject history); |
72 void GetDirectedNavigationHistory(JNIEnv* env, | 72 void GetDirectedNavigationHistory(JNIEnv* env, |
73 jobject obj, | 73 jobject obj, |
74 jobject history, | 74 jobject history, |
75 jboolean is_forward, | 75 jboolean is_forward, |
76 jint max_entries); | 76 jint max_entries); |
77 base::android::ScopedJavaLocalRef<jstring> | 77 base::android::ScopedJavaLocalRef<jstring> |
78 GetOriginalUrlForVisibleNavigationEntry(JNIEnv* env, jobject obj); | 78 GetOriginalUrlForVisibleNavigationEntry(JNIEnv* env, jobject obj); |
79 void ClearHistory(JNIEnv* env, jobject obj); | 79 void ClearHistory(JNIEnv* env, jobject obj); |
| 80 int GetLastCommittedEntryIndex(JNIEnv* env, jobject obj); |
| 81 jboolean RemoveEntryAtIndex(JNIEnv* env, jobject obj, jint index); |
80 | 82 |
81 private: | 83 private: |
82 NavigationController* navigation_controller_; | 84 NavigationController* navigation_controller_; |
83 base::android::ScopedJavaGlobalRef<jobject> obj_; | 85 base::android::ScopedJavaGlobalRef<jobject> obj_; |
84 | 86 |
85 DISALLOW_COPY_AND_ASSIGN(NavigationControllerAndroid); | 87 DISALLOW_COPY_AND_ASSIGN(NavigationControllerAndroid); |
86 }; | 88 }; |
87 | 89 |
88 } // namespace content | 90 } // namespace content |
89 | 91 |
90 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ | 92 #endif // CONTENT_BROWSER_FRAME_HOST_NAVIGATION_CONTROLLER_ANDROID_H_ |
OLD | NEW |