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

Unified Diff: content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java

Issue 1232123009: customtabs: Pre-create a renderer in mayLaunchUrl(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 5 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
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/framehost/NavigationControllerImpl.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java
diff --git a/content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java b/content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java
index 0f2cd2d53690c9f4d907ad1993884144e3b0448b..f3c099248f6c60bd7ad52245e1cc01e2488645fe 100644
--- a/content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java
+++ b/content/public/android/java/src/org/chromium/content_public/browser/LoadUrlParams.java
@@ -38,6 +38,7 @@ public class LoadUrlParams {
String mVirtualUrlForDataUrl;
boolean mCanLoadLocalResources;
boolean mIsRendererInitiated;
+ boolean mShouldReplaceCurrentEntry;
long mIntentReceivedTimestamp;
boolean mHasUserGesture;
@@ -394,6 +395,26 @@ public class LoadUrlParams {
}
/**
+ * @param shouldReplaceCurrentEntry Whether this navigation should replace
+ * the current navigation entry.
+ *
+ * Don't use this. This is a temporary hack that will be removed.
+ * TODO(lizeb): Remove this and {@link getShouldReplaceCurrentEntry} once
+ * crbug.com/521729 is fixed.
+ */
+ public void setShouldReplaceCurrentEntry(boolean shouldReplaceCurrentEntry) {
+ mShouldReplaceCurrentEntry = shouldReplaceCurrentEntry;
+ }
+
+ /**
+ * @return Whether this navigation should replace the current navigation
+ * entry.
+ */
+ public boolean getShouldReplaceCurrentEntry() {
+ return mShouldReplaceCurrentEntry;
+ }
+
+ /**
* @param intentReceivedTimestamp the timestamp at which Chrome received the intent that
* triggered this URL load, as returned by System.currentMillis.
*/
« no previous file with comments | « content/public/android/java/src/org/chromium/content/browser/framehost/NavigationControllerImpl.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698