Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: content/browser/frame_host/navigation_controller_android.cc

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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"
11 #include "content/browser/frame_host/navigation_controller_impl.h" 11 #include "content/browser/frame_host/navigation_controller_impl.h"
12 #include "content/browser/frame_host/navigation_entry_impl.h" 12 #include "content/browser/frame_host/navigation_entry_impl.h"
13 #include "content/public/browser/browser_context.h" 13 #include "content/public/browser/browser_context.h"
14 #include "content/public/browser/ssl_host_state_delegate.h" 14 #include "content/public/browser/ssl_host_state_delegate.h"
15 #include "content/public/common/resource_request_body.h" 15 #include "content/public/common/resource_request_body.h"
16 #include "jni/NavigationControllerImpl_jni.h" 16 #include "jni/NavigationControllerImpl_jni.h"
17 #include "net/base/data_url.h" 17 #include "net/base/data_url.h"
18 #include "ui/gfx/android/java_bitmap.h" 18 #include "ui/gfx/android/java_bitmap.h"
19 19
20 using base::android::AttachCurrentThread; 20 using base::android::AttachCurrentThread;
21 using base::android::ConvertJavaStringToUTF16; 21 using base::android::ConvertJavaStringToUTF16;
22 using base::android::ConvertJavaStringToUTF8; 22 using base::android::ConvertJavaStringToUTF8;
23 using base::android::ConvertUTF16ToJavaString; 23 using base::android::ConvertUTF16ToJavaString;
24 using base::android::ConvertUTF8ToJavaString; 24 using base::android::ConvertUTF8ToJavaString;
25 using base::android::JavaParamRef;
26 using base::android::ScopedJavaLocalRef;
25 namespace { 27 namespace {
26 28
27 // static 29 // static
28 static base::android::ScopedJavaLocalRef<jobject> CreateJavaNavigationEntry( 30 static base::android::ScopedJavaLocalRef<jobject> CreateJavaNavigationEntry(
29 JNIEnv* env, 31 JNIEnv* env,
30 content::NavigationEntry* entry, 32 content::NavigationEntry* entry,
31 int index) { 33 int index) {
32 DCHECK(entry); 34 DCHECK(entry);
33 35
34 // Get the details of the current entry 36 // Get the details of the current entry
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 const JavaParamRef<jobject>& obj, 426 const JavaParamRef<jobject>& obj,
425 jlong source_navigation_controller_android, 427 jlong source_navigation_controller_android,
426 jboolean replace_entry) { 428 jboolean replace_entry) {
427 navigation_controller_->CopyStateFromAndPrune( 429 navigation_controller_->CopyStateFromAndPrune(
428 reinterpret_cast<NavigationControllerAndroid*>( 430 reinterpret_cast<NavigationControllerAndroid*>(
429 source_navigation_controller_android)->navigation_controller_, 431 source_navigation_controller_android)->navigation_controller_,
430 replace_entry); 432 replace_entry);
431 } 433 }
432 434
433 } // namespace content 435 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698