Rovango / cefpython

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

Expose api to get/set cookies #20

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Create Cookie class for the CefCookie structure.

Expose CefCookieManager methods:
- VisitAllCookies(visitor)
- VisitUrlCookies(url, httponly, visitor)
- SetCookie(url, cookie)
- DeleteCookies(url, cookie_name)

CefCookieManager methods SetCookie/VisitUrlCookies require passing an url, we 
could create a helper method in Frame called SetCookie(cookie) that uses 
frame's current url when calling CefCookieManager.SetCookie().

Original issue reported on code.google.com by czarek.t...@gmail.com on 23 Oct 2012 at 8:18

GoogleCodeExporter commented 8 years ago
See cookie_unittest.cc for an example on how to get/set cookies:
http://code.google.com/p/chromiumembedded/source/browse/trunk/cef1/tests/unittes
ts/cookie_unittest.cc

Original comment by czarek.t...@gmail.com on 23 Oct 2012 at 8:23

GoogleCodeExporter commented 8 years ago
SetCookie() and DeleteCookies() must be called on the IO thread.
CefCookieVisitor::Visit() will be called on the IO thread.

Original comment by czarek.t...@gmail.com on 23 May 2013 at 12:28

GoogleCodeExporter commented 8 years ago
See revision ee118504ee40.

Original comment by czarek.t...@gmail.com on 27 May 2013 at 9:25

GoogleCodeExporter commented 8 years ago
See also revision f0d1789ce26a.

Original comment by czarek.t...@gmail.com on 27 May 2013 at 9:26

GoogleCodeExporter commented 8 years ago
Cookie support was sponsored by Cyan Inc.

Original comment by czarek.t...@gmail.com on 27 May 2013 at 9:28

GoogleCodeExporter commented 8 years ago
Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/cefpython/issues/20

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 6:25