| 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 <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include "base/android/jni_android.h" | 9 #include "base/android/jni_android.h" |
| 10 #include "base/android/jni_string.h" | 10 #include "base/android/jni_string.h" |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 navigation_controller_->ReloadToRefreshContent(check_for_repost); | 156 navigation_controller_->ReloadToRefreshContent(check_for_repost); |
| 157 } | 157 } |
| 158 | 158 |
| 159 void NavigationControllerAndroid::ReloadBypassingCache( | 159 void NavigationControllerAndroid::ReloadBypassingCache( |
| 160 JNIEnv* env, | 160 JNIEnv* env, |
| 161 const JavaParamRef<jobject>& obj, | 161 const JavaParamRef<jobject>& obj, |
| 162 jboolean check_for_repost) { | 162 jboolean check_for_repost) { |
| 163 navigation_controller_->ReloadBypassingCache(check_for_repost); | 163 navigation_controller_->ReloadBypassingCache(check_for_repost); |
| 164 } | 164 } |
| 165 | 165 |
| 166 void NavigationControllerAndroid::ReloadDisableLoFi( | |
| 167 JNIEnv* env, | |
| 168 const JavaParamRef<jobject>& obj, | |
| 169 jboolean check_for_repost) { | |
| 170 navigation_controller_->ReloadDisableLoFi(check_for_repost); | |
| 171 } | |
| 172 | |
| 173 void NavigationControllerAndroid::RequestRestoreLoad( | 166 void NavigationControllerAndroid::RequestRestoreLoad( |
| 174 JNIEnv* env, | 167 JNIEnv* env, |
| 175 const JavaParamRef<jobject>& obj) { | 168 const JavaParamRef<jobject>& obj) { |
| 176 navigation_controller_->SetNeedsReload(); | 169 navigation_controller_->SetNeedsReload(); |
| 177 } | 170 } |
| 178 | 171 |
| 179 void NavigationControllerAndroid::CancelPendingReload( | 172 void NavigationControllerAndroid::CancelPendingReload( |
| 180 JNIEnv* env, | 173 JNIEnv* env, |
| 181 const JavaParamRef<jobject>& obj) { | 174 const JavaParamRef<jobject>& obj) { |
| 182 navigation_controller_->CancelPendingReload(); | 175 navigation_controller_->CancelPendingReload(); |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 const JavaParamRef<jobject>& obj, | 414 const JavaParamRef<jobject>& obj, |
| 422 jlong source_navigation_controller_android, | 415 jlong source_navigation_controller_android, |
| 423 jboolean replace_entry) { | 416 jboolean replace_entry) { |
| 424 navigation_controller_->CopyStateFromAndPrune( | 417 navigation_controller_->CopyStateFromAndPrune( |
| 425 reinterpret_cast<NavigationControllerAndroid*>( | 418 reinterpret_cast<NavigationControllerAndroid*>( |
| 426 source_navigation_controller_android)->navigation_controller_, | 419 source_navigation_controller_android)->navigation_controller_, |
| 427 replace_entry); | 420 replace_entry); |
| 428 } | 421 } |
| 429 | 422 |
| 430 } // namespace content | 423 } // namespace content |
| OLD | NEW |