It’s similar to Android WebView(aw contents). I’m not sure the status of chrome 
for Android since it’s closed source but definitely it should support it.
Gao Chun, any comments about store the cookies?

Yongsheng

From: Crosswalk-dev [mailto:crosswalk-dev-boun...@lists.crosswalk-project.org] 
On Behalf Of Kenneth Rohde Christiansen
Sent: Tuesday, November 19, 2013 6:43 PM
To: Gao, Chun
Cc: crosswalk-dev@lists.crosswalk-project.org
Subject: Re: [Crosswalk-dev] Intent to Implement: [Android] Cookie management.

Is this a Java Interface you came up with or is it similar to what Chrome for 
Android uses? How are you going to store the cookies? DB, as separate files? 
What do Chrome for Android do?

Kenneth

On Tue, Nov 19, 2013 at 2:59 AM, Gao, Chun 
<chun....@intel.com<mailto:chun....@intel.com>> wrote:
Summary:
This implementation is about cookie management for Crosswalk Android. The 
cookies created by http/https response and JavaScript will be persistent to 
external storage rather than in memory, so that cookies won't lost after apps 
are relaunched. A Java interface will also be implemented to set, clear, allow 
accept, disable cookies.

Affected component: N/A

Related feature: XWALK-156<https://crosswalk-project.org/jira/browse/XWALK-156>

Target Release: Crosswalk 3

Implementation details:
1. Introduce the cookie access policy for network to enable/disable cookies.
2. Create persistent cookie storage for CookieMonster to store cookies.
3. Add a JNI class CookieManager for Java to set cookie access policy and 
manage cookies. The methods are:
    void setAcceptCookie(boolean accept) // Control whether cookie is enabled 
or disabled
    boolean acceptCookie()
    void setCookie(final String url, final String value)
    String getCookie(final String url)
    void removeSessionCookie()
    void removeAllCookie()
    boolean hasCookies()
    void removeExpiredCookie()
    void flushCookieStore()
    void setAcceptFileSchemeCookies(boolean accept) // Control whether cookies 
are accepted for file scheme URLs.
    boolean allowFileSchemeCookies()

Remark: This feature is for Crosswalk Android, but Tizen may have the similar 
requirement, if it's not an emergency for Tizen, the implementation could 
landed to Android first.

Thanks,
Gao Chun

_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org<mailto:Crosswalk-dev@lists.crosswalk-project.org>
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev



--
Kenneth Rohde Christiansen
Web Platform Architect, Intel Corporation.
Phone  +45 4294 9458 ﹆﹆﹆
_______________________________________________
Crosswalk-dev mailing list
Crosswalk-dev@lists.crosswalk-project.org
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev

Reply via email to