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

Unified Diff: content/public/browser/android/content_view_core.h

Issue 10823207: Consolidate ContentViewCore::Load* functions (Closed) Base URL: http://git.chromium.org/chromium/src.git@cleanup_load
Patch Set: Split up nativeLoadUrl parameters and get rid of most of jni code. Moved android_load_url_params. Created 8 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 side-by-side diff with in-line comments
Download patch
Index: content/public/browser/android/content_view_core.h
diff --git a/content/public/browser/android/content_view_core.h b/content/public/browser/android/content_view_core.h
index a1871963e26520c193f0b729e39d629fe475473f..46a7d21561fc597a6ce210e2059d489deb3d6a1d 100644
--- a/content/public/browser/android/content_view_core.h
+++ b/content/public/browser/android/content_view_core.h
@@ -35,6 +35,26 @@ class ContentViewCore {
WebContents* web_contents);
static ContentViewCore* GetNativeContentViewCore(JNIEnv* env, jobject obj);
+ // --------------------------------------------------------------------------
+ // Methods called from Java via JNI
joth 2012/08/09 00:33:55 these don't need to be in the base class. They are
boliu 2012/08/09 01:22:00 Generated ContentViewCore_jni.h uses this through
+ // --------------------------------------------------------------------------
+
+ virtual void LoadUrl(
+ JNIEnv* env, jobject obj,
+ jstring url,
+ jint load_url_type,
+ jint transition_type,
+ jint ua_override_option,
+ jbyteArray post_data,
+ jstring base_url_for_data_url,
+ jstring virtual_url_for_data_url) = 0;
+
+ // --------------------------------------------------------------------------
+ // Methods called from native code
joth 2012/08/09 00:33:55 this comment shouldn't be needed, as this base cla
+ // --------------------------------------------------------------------------
+
+ virtual void LoadUrl(NavigationController::LoadURLParams& params) = 0;
joth 2012/08/09 00:33:55 (does LoadUrl actually get called from native? I t
+
protected:
virtual ~ContentViewCore() {};
};

Powered by Google App Engine
This is Rietveld 408576698