Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7101)

Unified Diff: chrome/renderer/renderer_webstoragenamespace_impl.h

Issue 147248: DOM Storage: Add renderer-process IPC code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/renderer_webstoragenamespace_impl.h
===================================================================
--- chrome/renderer/renderer_webstoragenamespace_impl.h (revision 0)
+++ chrome/renderer/renderer_webstoragenamespace_impl.h (revision 0)
@@ -0,0 +1,35 @@
+// Copyright (c) 2009 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 CHROME_RENDERER_RENDERER_WEBSTORAGENAMESPACE_IMPL_H_
+#define CHROME_RENDERER_RENDERER_WEBSTORAGENAMESPACE_IMPL_H_
+
+#include "base/basictypes.h"
+#include "webkit/api/public/WebStorageNamespace.h"
+
+class RendererWebStorageNamespaceImpl : public WebKit::WebStorageNamespace {
+ public:
+ explicit RendererWebStorageNamespaceImpl(bool is_local_storage);
+ RendererWebStorageNamespaceImpl(bool is_local_storage, int64 namespace_id);
+
+ // See WebStorageNamespace.h for documentation on these functions.
+ virtual ~RendererWebStorageNamespaceImpl();
+ virtual WebKit::WebStorageArea* createStorageArea(
+ const WebKit::WebString& origin);
+ virtual WebKit::WebStorageNamespace* copy();
+ virtual void close();
+
+ private:
+ // Are we local storage (as opposed to session storage). Used during lazy
+ // initialization of namespace_id_.
+ bool is_local_storage_;
+
+ // Our namespace ID. Lazily initialized.
+ int64 namespace_id_;
+
+ // namespace_id_ should equal this iff its unitialized.
+ static const int64 kUninitializedNamespaceId = -1;
+};
+
+#endif // CHROME_RENDERER_WEBSTORAGENAMESPACE_IMPL_H_
Property changes on: chrome\renderer\renderer_webstoragenamespace_impl.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « chrome/renderer/renderer_webstoragearea_impl.cc ('k') | chrome/renderer/renderer_webstoragenamespace_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698