mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add CefSetCookiePath() and CefSetStoragePath() functions for changing cookie and localStorage locations while CEF is running (issue #347).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@353 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -39,6 +39,11 @@ class BrowserRequestContext : public net::URLRequestContext {
|
||||
void SetAcceptAllCookies(bool accept_all_cookies);
|
||||
bool AcceptAllCookies();
|
||||
|
||||
// Set the path used for cookie storage. If |path| is empty memory only
|
||||
// storage will be used. If the old cookie data is being stored on disk it
|
||||
// will be flushed and closed.
|
||||
void SetCookieStoragePath(const FilePath& path);
|
||||
|
||||
webkit_blob::BlobStorageController* blob_storage_controller() const {
|
||||
return blob_storage_controller_.get();
|
||||
}
|
||||
@ -55,6 +60,7 @@ class BrowserRequestContext : public net::URLRequestContext {
|
||||
scoped_ptr<webkit_blob::BlobStorageController> blob_storage_controller_;
|
||||
scoped_refptr<fileapi::FileSystemContext> file_system_context_;
|
||||
scoped_ptr<net::URLSecurityManager> url_security_manager_;
|
||||
FilePath cookie_store_path_;
|
||||
bool accept_all_cookies_;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user