blob: 1e0d7b2ea57ac54ba9891d574f2014746c6af5e2 [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/Source/WebKit/chromium/public/WebStorageNamespace.h"
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_;
};
#endif // CONTENT_RENDERER_DOM_STORAGE_WEBSTORAGENAMESPACE_IMPL_H_