Implement persistent localStorage with the new DOM storage backend (issue #603).

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@704 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2012-06-22 14:56:07 +00:00
parent 1f42df1b61
commit a6aded4716
4 changed files with 48 additions and 2 deletions

View File

@@ -19,6 +19,7 @@
#include "base/at_exit.h"
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/threading/sequenced_worker_pool.h"
class CefBrowserImpl;
class CefResourceBundleDelegate;
@@ -88,6 +89,12 @@ class CefContext : public CefBase {
current_webviewhost_ = host;
}
// The SequencedWorkerPool object is managed by CefProcessUIThread.
void set_blocking_pool(base::SequencedWorkerPool* blocking_pool) {
blocking_pool_ = blocking_pool;
}
base::SequencedWorkerPool* blocking_pool() { return blocking_pool_.get(); }
static bool ImplementsThreadSafeReferenceCounting() { return true; }
private:
@@ -122,6 +129,8 @@ class CefContext : public CefBase {
WebViewHost* current_webviewhost_;
scoped_refptr<base::SequencedWorkerPool> blocking_pool_;
IMPLEMENT_REFCOUNTING(CefContext);
IMPLEMENT_LOCKING(CefContext);
};