mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
- Persist localStorage data across sessions when a cache path is specified (issue #139).
- Add a localStorage test to cefclient. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@140 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
37
libcef/browser_webstoragenamespace_impl.h
Normal file
37
libcef/browser_webstoragenamespace_impl.h
Normal file
@ -0,0 +1,37 @@
|
||||
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef _BROWSER_WEBSTORAGENAMESPACE_IMPL_H
|
||||
#define _BROWSER_WEBSTORAGENAMESPACE_IMPL_H
|
||||
|
||||
#include "dom_storage_common.h"
|
||||
|
||||
#include "base/basictypes.h"
|
||||
#include "third_party/WebKit/WebKit/chromium/public/WebStorageNamespace.h"
|
||||
|
||||
class BrowserWebStorageNamespaceImpl : public WebKit::WebStorageNamespace {
|
||||
public:
|
||||
explicit BrowserWebStorageNamespaceImpl(DOMStorageType storage_type);
|
||||
BrowserWebStorageNamespaceImpl(DOMStorageType storage_type,
|
||||
int64 namespace_id);
|
||||
|
||||
// See WebStorageNamespace.h for documentation on these functions.
|
||||
virtual ~BrowserWebStorageNamespaceImpl();
|
||||
virtual WebKit::WebStorageArea* createStorageArea(
|
||||
const WebKit::WebString& origin);
|
||||
virtual WebKit::WebStorageNamespace* copy();
|
||||
virtual void close();
|
||||
|
||||
// Returns true if storage data is being cached to disk.
|
||||
static bool IsStorageActive();
|
||||
|
||||
private:
|
||||
// Used during lazy initialization of namespace_id_.
|
||||
const DOMStorageType storage_type_;
|
||||
|
||||
// Our namespace ID.
|
||||
int64 namespace_id_;
|
||||
};
|
||||
|
||||
#endif // _BROWSER_WEBSTORAGENAMESPACE_IMPL_H
|
Reference in New Issue
Block a user