| Index: chrome/android/java/src/org/chromium/chrome/browser/cookies/CanonicalCookie.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/cookies/CanonicalCookie.java b/chrome/android/java/src/org/chromium/chrome/browser/cookies/CanonicalCookie.java
|
| index 951a636d9ba6fa9829207d659fc32f02bdf86497..38afc9345eae970795429b260c0ea1b823200496 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/cookies/CanonicalCookie.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/cookies/CanonicalCookie.java
|
| @@ -22,6 +22,7 @@ class CanonicalCookie {
|
| private final long mLastAccess;
|
| private final boolean mSecure;
|
| private final boolean mHttpOnly;
|
| + private final boolean mFirstParty;
|
| private final int mPriority;
|
|
|
| /** Constructs a CanonicalCookie */
|
| @@ -35,6 +36,7 @@ class CanonicalCookie {
|
| long lastAccess,
|
| boolean secure,
|
| boolean httpOnly,
|
| + boolean firstParty,
|
| int priority) {
|
| mUrl = url;
|
| mName = name;
|
| @@ -46,6 +48,7 @@ class CanonicalCookie {
|
| mLastAccess = lastAccess;
|
| mSecure = secure;
|
| mHttpOnly = httpOnly;
|
| + mFirstParty = firstParty;
|
| mPriority = priority;
|
| }
|
|
|
| @@ -59,6 +62,11 @@ class CanonicalCookie {
|
| return mHttpOnly;
|
| }
|
|
|
| + /** @return True if the cookie is First-Party. */
|
| + boolean isFirstParty() {
|
| + return mFirstParty;
|
| + }
|
| +
|
| /** @return True if the cookie is secure. */
|
| boolean isSecure() {
|
| return mSecure;
|
| @@ -121,6 +129,7 @@ class CanonicalCookie {
|
| out.writeLong(mLastAccess);
|
| out.writeBoolean(mSecure);
|
| out.writeBoolean(mHttpOnly);
|
| + out.writeBoolean(mFirstParty);
|
| out.writeInt(mPriority);
|
| }
|
|
|
| @@ -134,6 +143,6 @@ class CanonicalCookie {
|
| throws IOException {
|
| return new CanonicalCookie(in.readUTF(), in.readUTF(), in.readUTF(), in.readUTF(),
|
| in.readUTF(), in.readLong(), in.readLong(), in.readLong(), in.readBoolean(),
|
| - in.readBoolean(), in.readInt());
|
| + in.readBoolean(), in.readBoolean(), in.readInt());
|
| }
|
| }
|
|
|