alderlopez / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

CEF3: Add direct cookie access #512

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add direct cookie access. See 
http://magpcss.org/ceforum/viewtopic.php?f=10&t=645 for CEF3 information.

Original issue reported on code.google.com by magreenb...@gmail.com on 13 Feb 2012 at 7:12

GoogleCodeExporter commented 9 years ago
How cookie retrieval works:

1. In the render process RenderViewImpl::cookieJar returns a 
RendererWebCookieJarImpl instance.

2. When cookies are requested RendererWebCookieJarImpl sends a 
ViewHostMsg_GetRawCookies message to the browser process.

3. RenderMessageFilter::OnGetRawCookies calls 
RenderMessageFilter::GetRequestContextForURL which returns a 
net::URLRequestContext* via either 
ContentBrowserClient::OverrideRequestContextForURL or 
URLRequestContextGetter::GetURLRequestContext.

4. RenderMessageFilter::OnGetRawCookies calls cookie_store() on the returned 
URLRequestContext.

Original comment by magreenb...@gmail.com on 21 Mar 2012 at 1:37

GoogleCodeExporter commented 9 years ago
Some enhancements to the content API will be required to support separate 
cookie stores as described in issue 542. Thread on that topic started here:
http://groups.google.com/a/chromium.org/group/chromium-dev/browse_thread/thread/
b27dc5d8c3fafb73

Original comment by magreenb...@gmail.com on 21 Mar 2012 at 3:02

GoogleCodeExporter commented 9 years ago
Done in revision 549.

Original comment by magreenb...@gmail.com on 23 Mar 2012 at 10:43