| 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;
|
| }
|
|
|