| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  143     const JavaParamRef<jobject>& obj) { |  143     const JavaParamRef<jobject>& obj) { | 
|  144   navigation_controller_->ContinuePendingReload(); |  144   navigation_controller_->ContinuePendingReload(); | 
|  145 } |  145 } | 
|  146  |  146  | 
|  147 void NavigationControllerAndroid::Reload(JNIEnv* env, |  147 void NavigationControllerAndroid::Reload(JNIEnv* env, | 
|  148                                          const JavaParamRef<jobject>& obj, |  148                                          const JavaParamRef<jobject>& obj, | 
|  149                                          jboolean check_for_repost) { |  149                                          jboolean check_for_repost) { | 
|  150   navigation_controller_->Reload(check_for_repost); |  150   navigation_controller_->Reload(check_for_repost); | 
|  151 } |  151 } | 
|  152  |  152  | 
|  153 void NavigationControllerAndroid::ReloadToRefreshContent( |  | 
|  154     JNIEnv* env, |  | 
|  155     jobject obj, |  | 
|  156     jboolean check_for_repost) { |  | 
|  157   navigation_controller_->ReloadToRefreshContent(check_for_repost); |  | 
|  158 } |  | 
|  159  |  | 
|  160 void NavigationControllerAndroid::ReloadBypassingCache( |  153 void NavigationControllerAndroid::ReloadBypassingCache( | 
|  161     JNIEnv* env, |  154     JNIEnv* env, | 
|  162     const JavaParamRef<jobject>& obj, |  155     const JavaParamRef<jobject>& obj, | 
|  163     jboolean check_for_repost) { |  156     jboolean check_for_repost) { | 
|  164   navigation_controller_->ReloadBypassingCache(check_for_repost); |  157   navigation_controller_->ReloadBypassingCache(check_for_repost); | 
|  165 } |  158 } | 
|  166  |  159  | 
|  167 void NavigationControllerAndroid::RequestRestoreLoad( |  160 void NavigationControllerAndroid::RequestRestoreLoad( | 
|  168     JNIEnv* env, |  161     JNIEnv* env, | 
|  169     const JavaParamRef<jobject>& obj) { |  162     const JavaParamRef<jobject>& obj) { | 
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  443     const JavaParamRef<jstring>& jvalue) { |  436     const JavaParamRef<jstring>& jvalue) { | 
|  444   if (index < 0 || index >= navigation_controller_->GetEntryCount()) |  437   if (index < 0 || index >= navigation_controller_->GetEntryCount()) | 
|  445     return; |  438     return; | 
|  446  |  439  | 
|  447   std::string key = base::android::ConvertJavaStringToUTF8(env, jkey); |  440   std::string key = base::android::ConvertJavaStringToUTF8(env, jkey); | 
|  448   base::string16 value = base::android::ConvertJavaStringToUTF16(env, jvalue); |  441   base::string16 value = base::android::ConvertJavaStringToUTF16(env, jvalue); | 
|  449   navigation_controller_->GetEntryAtIndex(index)->SetExtraData(key, value); |  442   navigation_controller_->GetEntryAtIndex(index)->SetExtraData(key, value); | 
|  450 } |  443 } | 
|  451  |  444  | 
|  452 }  // namespace content |  445 }  // namespace content | 
| OLD | NEW |