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

Unified Diff: webkit/dom_storage/dom_storage_types.h

Issue 9146025: Framing for a DOMStorage backend that does not depend on in-process-webkit. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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: webkit/dom_storage/dom_storage_types.h
===================================================================
--- webkit/dom_storage/dom_storage_types.h (revision 0)
+++ webkit/dom_storage/dom_storage_types.h (revision 0)
@@ -0,0 +1,31 @@
+// 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 WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
+#define WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
+#pragma once
+
+#include <map>
+
+#include "base/basictypes.h"
+#include "base/nullable_string16.h"
+#include "base/string16.h"
+
+namespace dom_storage {
+
+// The quota for each storage area. Suggested by the spec.
+const int kPerAreaQuota = 5 * 1024 * 1024;
+
+// Value to indicate the localstorage namespace vs non-zero
+// values for sessionstorage namespaces.
+const int64 kLocalStorageNamespaceId = 0;
+
+// Value to indicate an area that not be opened.
+const int kInvalidAreaId = -1;
+
+typedef std::map<string16, NullableString16> ValuesMap;
+
+} // namespace dom_storage
+
+#endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
Property changes on: webkit\dom_storage\dom_storage_types.h
___________________________________________________________________
Added: svn:eol-style
+ LF

Powered by Google App Engine
This is Rietveld 408576698