- Add CefSettings.local_storage_quota and session_storage_quota options for setting localStorage and sessionStorage quota limits respectively (issue #348).

- Add Cef*Storage() functions and CefStorageVisitor interface for accessing localStorage and sessionStorage data via the native API (issue #361).
- Add a "cache_path" command-line flag option to cef_unittests for running the unit tests with a cache path value (issue #368).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@302 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-10-06 13:34:47 +00:00
parent 50b909a417
commit 6b134b4def
29 changed files with 1209 additions and 127 deletions

View File

@@ -14,6 +14,7 @@
#include "libcef_dll/cpptoc/read_handler_cpptoc.h"
#include "libcef_dll/cpptoc/scheme_handler_cpptoc.h"
#include "libcef_dll/cpptoc/scheme_handler_factory_cpptoc.h"
#include "libcef_dll/cpptoc/storage_visitor_cpptoc.h"
#include "libcef_dll/cpptoc/task_cpptoc.h"
#include "libcef_dll/cpptoc/v8accessor_cpptoc.h"
#include "libcef_dll/cpptoc/v8handler_cpptoc.h"
@@ -54,6 +55,7 @@ void CefShutdown()
DCHECK(CefReadHandlerCppToC::DebugObjCt == 0);
DCHECK(CefSchemeHandlerCppToC::DebugObjCt == 0);
DCHECK(CefSchemeHandlerFactoryCppToC::DebugObjCt == 0);
DCHECK(CefStorageVisitorCppToC::DebugObjCt == 0);
DCHECK(CefV8AccessorCppToC::DebugObjCt == 0);
DCHECK(CefV8HandlerCppToC::DebugObjCt == 0);
DCHECK(CefWebURLRequestClientCppToC::DebugObjCt == 0);
@@ -202,3 +204,25 @@ bool CefDeleteCookies(const CefString& url, const CefString& cookie_name)
return cef_delete_cookies(url.GetStruct(), cookie_name.GetStruct()) ?
true : false;
}
bool CefVisitStorage(CefStorageType type, const CefString& origin,
const CefString& key,
CefRefPtr<CefStorageVisitor> visitor)
{
return cef_visit_storage(type, origin.GetStruct(), key.GetStruct(),
CefStorageVisitorCppToC::Wrap(visitor)) ? true : false;
}
bool CefSetStorage(CefStorageType type, const CefString& origin,
const CefString& key, const CefString& value)
{
return cef_set_storage(type, origin.GetStruct(), key.GetStruct(),
value.GetStruct()) ? true : false;
}
bool CefDeleteStorage(CefStorageType type, const CefString& origin,
const CefString& key)
{
return cef_delete_storage(type, origin.GetStruct(), key.GetStruct()) ?
true : false;
}