| 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 96525f4083b27f02dd4a2fa65abe2e5e04e455bb..4b589ec4cf2942d375bf892149d60140e97f22f5 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
|
| @@ -6,6 +6,7 @@ package org.chromium.content.browser;
|
|
|
| import org.chromium.base.CalledByNative;
|
| import org.chromium.base.JNINamespace;
|
| +import org.chromium.content_public.Referrer;
|
|
|
| import java.util.Locale;
|
| import java.util.Map;
|
| @@ -37,9 +38,10 @@ public class LoadUrlParams {
|
| String mUrl;
|
| int mLoadUrlType;
|
| int mTransitionType;
|
| - int mUaOverrideOption;
|
| + Referrer mReferrer;
|
| private Map<String, String> mExtraHeaders;
|
| private String mVerbatimHeaders;
|
| + int mUaOverrideOption;
|
| byte[] mPostData;
|
| String mBaseUrlForDataUrl;
|
| String mVirtualUrlForDataUrl;
|
| @@ -222,11 +224,17 @@ public class LoadUrlParams {
|
| }
|
|
|
| /**
|
| - * Set user agent override option of this load. Defaults to UA_OVERRIDE_INHERIT.
|
| - * @param uaOption One of UA_OVERRIDE static constants above.
|
| + * @return the referrer of this load
|
| */
|
| - public void setOverrideUserAgent(int uaOption) {
|
| - mUaOverrideOption = uaOption;
|
| + public void setReferrer(Referrer referrer) {
|
| + mReferrer = referrer;
|
| + }
|
| +
|
| + /**
|
| + * Sets the referrer of this load.
|
| + */
|
| + public Referrer getReferrer() {
|
| + return mReferrer;
|
| }
|
|
|
| /**
|
| @@ -292,6 +300,14 @@ public class LoadUrlParams {
|
| }
|
|
|
| /**
|
| + * Set user agent override option of this load. Defaults to UA_OVERRIDE_INHERIT.
|
| + * @param uaOption One of UA_OVERRIDE static constants above.
|
| + */
|
| + public void setOverrideUserAgent(int uaOption) {
|
| + mUaOverrideOption = uaOption;
|
| + }
|
| +
|
| + /**
|
| * 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.
|
|
|