mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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);
|
||||
};
|
||||
|
Reference in New Issue
Block a user