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

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

Issue 406023002: Restructuring NavigationController functionalities from ContentViewCore to NavigationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed unwanted headers Created 6 years, 5 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/android/java/src/org/chromium/content/browser/LoadUrlParams.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java b/content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java
index db484427ac1168dcabae647bd72c8fa2fb80b024..375fd9d3665e0e77e1758de597b37bfb4122c1a2 100644
--- a/content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java
+++ b/content/public/android/java/src/org/chromium/content/browser/LoadUrlParams.java
@@ -259,7 +259,7 @@ public class LoadUrlParams {
* exploded form through setExtraHeaders(). Embedders that work with extra headers in opaque
* collapsed form can use the setVerbatimHeaders() / getVerbatimHeaders() instead.
*/
- String getExtraHeadersString() {
+ public String getExtraHeadersString() {
return getExtraHeadersString("\n", false);
}
@@ -314,6 +314,14 @@ public class LoadUrlParams {
}
/**
+ * Get user agent override option of this load. Defaults to UA_OVERRIDE_INHERIT.
+ * @param uaOption One of UA_OVERRIDE static constants above.
+ */
+ public int getUserAgentOverrideOption() {
+ return mUaOverrideOption;
+ }
+
+ /**
* Set the post data of this load. This field is ignored unless load type is
* LOAD_TYPE_BROWSER_INITIATED_HTTP_POST.
* @param postData Post data for this http post load.
@@ -340,6 +348,15 @@ public class LoadUrlParams {
}
/**
+ * Get the virtual url for data load. It is the url displayed to the user.
+ * It is ignored unless load type is LOAD_TYPE_DATA.
+ * @return The virtual url for this data load.
+ */
+ public String getVirtualUrlForDataUrl() {
+ return mVirtualUrlForDataUrl;
+ }
+
+ /**
* Set the virtual url for data load. It is the url displayed to the user.
* It is ignored unless load type is LOAD_TYPE_DATA.
* @param virtualUrl The virtual url for this data load.
@@ -356,6 +373,14 @@ public class LoadUrlParams {
mCanLoadLocalResources = canLoad;
}
+ /**
+ * Get whether the load should be able to access local resources. This
+ * defaults to false.
+ */
+ public boolean getCanLoadLocalResources() {
+ return mCanLoadLocalResources;
+ }
+
public int getLoadUrlType() {
return mLoadUrlType;
}

Powered by Google App Engine
This is Rietveld 408576698