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

Unified Diff: content/browser/web_contents/web_contents_android.h

Issue 414423002: Removing ContentViewCore dependencies from few functions which acts as direct wrapper to WebContents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Formatted native file changes to correct inclusion order. Created 6 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/browser/web_contents/web_contents_android.h
diff --git a/content/browser/web_contents/web_contents_android.h b/content/browser/web_contents/web_contents_android.h
index add9637f5290b872092167ca08b2d1a4d5d02e5d..05bc0243ebb9f831eba1355ce84f492008b0deac 100644
--- a/content/browser/web_contents/web_contents_android.h
+++ b/content/browser/web_contents/web_contents_android.h
@@ -14,6 +14,7 @@
#include "content/browser/frame_host/navigation_controller_android.h"
#include "content/browser/renderer_host/render_widget_host_view_android.h"
#include "content/common/content_export.h"
+#include "net/http/http_response_headers.h"
namespace content {
@@ -41,6 +42,25 @@ class CONTENT_EXPORT WebContentsAndroid
jobject obj) const;
void Stop(JNIEnv* env, jobject obj);
jint GetBackgroundColor(JNIEnv* env, jobject obj);
+ base::android::ScopedJavaLocalRef<jstring> GetURL(JNIEnv* env, jobject) const;
+ jboolean IsIncognito(JNIEnv* env, jobject obj);
+
+ void ResumeResponseDeferredAtStart(JNIEnv* env, jobject obj);
+ void SetHasPendingNavigationTransitionForTesting(JNIEnv* env, jobject obj);
+
+ // This method is invoked when the request is deferred immediately after
+ // receiving response headers.
+ void DidDeferAfterResponseStarted(
+ const scoped_refptr<net::HttpResponseHeaders>& headers,
+ const GURL& url);
+
+ // This method is invoked when a navigation transition is detected, to
+ // determine if the embedder intends to handle it.
+ bool WillHandleDeferAfterResponseStarted();
+
+ // This method is invoked when a navigation transition has started.
+ void DidStartNavigationTransitionForFrame(int64 frame_id);
+
void OnHide(JNIEnv* env, jobject obj);
void OnShow(JNIEnv* env, jobject obj);
void PauseVideo();

Powered by Google App Engine
This is Rietveld 408576698