| 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 const JavaParamRef<jobject>& obj) { | 142 const JavaParamRef<jobject>& obj) { |
| 143 navigation_controller_->ContinuePendingReload(); | 143 navigation_controller_->ContinuePendingReload(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void NavigationControllerAndroid::Reload(JNIEnv* env, | 146 void NavigationControllerAndroid::Reload(JNIEnv* env, |
| 147 const JavaParamRef<jobject>& obj, | 147 const JavaParamRef<jobject>& obj, |
| 148 jboolean check_for_repost) { | 148 jboolean check_for_repost) { |
| 149 navigation_controller_->Reload(check_for_repost); | 149 navigation_controller_->Reload(check_for_repost); |
| 150 } | 150 } |
| 151 | 151 |
| 152 void NavigationControllerAndroid::ReloadToRefreshContent( |
| 153 JNIEnv* env, |
| 154 jobject obj, |
| 155 jboolean check_for_repost) { |
| 156 navigation_controller_->ReloadToRefreshContent(check_for_repost); |
| 157 } |
| 158 |
| 152 void NavigationControllerAndroid::ReloadIgnoringCache( | 159 void NavigationControllerAndroid::ReloadIgnoringCache( |
| 153 JNIEnv* env, | 160 JNIEnv* env, |
| 154 const JavaParamRef<jobject>& obj, | 161 const JavaParamRef<jobject>& obj, |
| 155 jboolean check_for_repost) { | 162 jboolean check_for_repost) { |
| 156 navigation_controller_->ReloadIgnoringCache(check_for_repost); | 163 navigation_controller_->ReloadIgnoringCache(check_for_repost); |
| 157 } | 164 } |
| 158 | 165 |
| 159 void NavigationControllerAndroid::ReloadDisableLoFi( | 166 void NavigationControllerAndroid::ReloadDisableLoFi( |
| 160 JNIEnv* env, | 167 JNIEnv* env, |
| 161 const JavaParamRef<jobject>& obj, | 168 const JavaParamRef<jobject>& obj, |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 const JavaParamRef<jobject>& obj, | 406 const JavaParamRef<jobject>& obj, |
| 400 jlong source_navigation_controller_android, | 407 jlong source_navigation_controller_android, |
| 401 jboolean replace_entry) { | 408 jboolean replace_entry) { |
| 402 navigation_controller_->CopyStateFromAndPrune( | 409 navigation_controller_->CopyStateFromAndPrune( |
| 403 reinterpret_cast<NavigationControllerAndroid*>( | 410 reinterpret_cast<NavigationControllerAndroid*>( |
| 404 source_navigation_controller_android)->navigation_controller_, | 411 source_navigation_controller_android)->navigation_controller_, |
| 405 replace_entry); | 412 replace_entry); |
| 406 } | 413 } |
| 407 | 414 |
| 408 } // namespace content | 415 } // namespace content |
| OLD | NEW |