Add the ability to persist session cookies (issue #881).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1098 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2013-02-13 19:53:41 +00:00
parent bb3a804033
commit d65179c135
23 changed files with 489 additions and 62 deletions

View File

@@ -16,7 +16,8 @@ class CefCookieManagerImpl : public CefCookieManager {
~CefCookieManagerImpl();
// Initialize the cookie manager.
void Initialize(const CefString& path);
void Initialize(const CefString& path,
bool persist_session_cookies);
// CefCookieManager methods.
virtual void SetSupportedSchemes(const std::vector<CefString>& schemes)
@@ -28,7 +29,9 @@ class CefCookieManagerImpl : public CefCookieManager {
const CefCookie& cookie) OVERRIDE;
virtual bool DeleteCookies(const CefString& url,
const CefString& cookie_name) OVERRIDE;
virtual bool SetStoragePath(const CefString& path) OVERRIDE;
virtual bool SetStoragePath(const CefString& path,
bool persist_session_cookies) OVERRIDE;
virtual bool FlushStore(CefRefPtr<CefCompletionHandler> handler) OVERRIDE;
net::CookieMonster* cookie_monster() { return cookie_monster_; }