blob: 52c1b355f9bd55e85744fd9bd8663ea5d1469095 [file] [log] [blame]
// Copyright (c) 2012 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 CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
#define CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_
#include "base/basictypes.h"
#include "third_party/WebKit/public/platform/WebStorageNamespace.h"
namespace content {
class WebStorageNamespaceImpl : public WebKit::WebStorageNamespace {
public:
// The default constructor creates a local storage namespace, the second
// constructor should be used for session storage namepaces.
WebStorageNamespaceImpl();
explicit WebStorageNamespaceImpl(int64 namespace_id);
virtual ~WebStorageNamespaceImpl();
// See WebStorageNamespace.h for documentation on these functions.
virtual WebKit::WebStorageArea* createStorageArea(
const WebKit::WebString& origin);
virtual WebKit::WebStorageNamespace* copy();
virtual bool isSameNamespace(const WebStorageNamespace&) const;
private:
int64 namespace_id_;
};
} // namespace content
#endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_