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 #include "content/browser/frame_host/navigation_controller_android.h" | 5 #include "content/browser/frame_host/navigation_controller_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/android/jni_array.h" | 8 #include "base/android/jni_array.h" |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "content/browser/frame_host/navigation_entry_impl.h" | 10 #include "content/browser/frame_host/navigation_entry_impl.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 NavigationControllerAndroid::GetPendingEntry(JNIEnv* env, jobject obj) { | 304 NavigationControllerAndroid::GetPendingEntry(JNIEnv* env, jobject obj) { |
305 content::NavigationEntry* entry = navigation_controller_->GetPendingEntry(); | 305 content::NavigationEntry* entry = navigation_controller_->GetPendingEntry(); |
306 | 306 |
307 if (!entry) | 307 if (!entry) |
308 return base::android::ScopedJavaLocalRef<jobject>(); | 308 return base::android::ScopedJavaLocalRef<jobject>(); |
309 | 309 |
310 return CreateJavaNavigationEntry( | 310 return CreateJavaNavigationEntry( |
311 env, entry, navigation_controller_->GetPendingEntryIndex()); | 311 env, entry, navigation_controller_->GetPendingEntryIndex()); |
312 } | 312 } |
313 | 313 |
| 314 jint NavigationControllerAndroid::GetLastCommittedEntryIndex(JNIEnv* env, |
| 315 jobject obj) { |
| 316 return navigation_controller_->GetLastCommittedEntryIndex(); |
| 317 } |
| 318 |
| 319 jboolean NavigationControllerAndroid::RemoveEntryAtIndex(JNIEnv* env, |
| 320 jobject obj, |
| 321 jint index) { |
| 322 return navigation_controller_->RemoveEntryAtIndex(index); |
| 323 } |
| 324 |
314 } // namespace content | 325 } // namespace content |
OLD | NEW |