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

Side by Side Diff: webkit/dom_storage/dom_storage_types.h

Issue 9429029: Integrate the new DomStorage backend into DRT and test_shell. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/nullable_string16.h" 12 #include "base/nullable_string16.h"
13 #include "base/string16.h" 13 #include "base/string16.h"
14 14
15 #define ENABLE_NEW_DOM_STORAGE_BACKEND
benm (inactive) 2012/02/23 19:17:15 Maybe a comment on this to say how the flag is use
michaeln 2012/02/28 01:14:54 Done.
16
15 namespace dom_storage { 17 namespace dom_storage {
16 18
17 // The quota for each storage area. Suggested by the spec. 19 // The quota for each storage area. Suggested by the spec.
18 const int kPerAreaQuota = 5 * 1024 * 1024; 20 const int kPerAreaQuota = 5 * 1024 * 1024;
19 21
20 // Value to indicate the localstorage namespace vs non-zero 22 // Value to indicate the localstorage namespace vs non-zero
21 // values for sessionstorage namespaces. 23 // values for sessionstorage namespaces.
22 const int64 kLocalStorageNamespaceId = 0; 24 const int64 kLocalStorageNamespaceId = 0;
23 25
24 // Value to indicate an area that not be opened. 26 // Value to indicate an area that not be opened.
25 const int kInvalidAreaId = -1; 27 const int kInvalidAreaId = -1;
26 28
27 typedef std::map<string16, NullableString16> ValuesMap; 29 typedef std::map<string16, NullableString16> ValuesMap;
28 30
29 } // namespace dom_storage 31 } // namespace dom_storage
30 32
31 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_ 33 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698