| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
| 2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
| 3 // LICENSE file. | 3 // LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ | 5 #ifndef CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ |
| 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ | 6 #define CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ |
| 7 | 7 |
| 8 #include "base/string16.h" | 8 #include "base/string16.h" |
| 9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
| 10 #include "chrome/common/dom_storage_type.h" | 10 #include "chrome/common/dom_storage_type.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 // The WebKit storage namespace we manage. | 49 // The WebKit storage namespace we manage. |
| 50 WebKit::WebStorageNamespace* storage_namespace_; | 50 WebKit::WebStorageNamespace* storage_namespace_; |
| 51 | 51 |
| 52 // Our id. Unique to our parent WebKitContext class. | 52 // Our id. Unique to our parent WebKitContext class. |
| 53 int64 id_; | 53 int64 id_; |
| 54 | 54 |
| 55 // SessionStorage vs. LocalStorage. | 55 // SessionStorage vs. LocalStorage. |
| 56 const DOMStorageType storage_type_; | 56 const DOMStorageType storage_type_; |
| 57 | 57 |
| 58 // The quota for each storage area. Suggested by the spec. |
| 59 static const unsigned kLocalStorageQuota = 5 * 1024 * 1024; |
| 60 |
| 58 DISALLOW_IMPLICIT_CONSTRUCTORS(StorageNamespace); | 61 DISALLOW_IMPLICIT_CONSTRUCTORS(StorageNamespace); |
| 59 }; | 62 }; |
| 60 | 63 |
| 61 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ | 64 #endif // CHROME_BROWSER_IN_PROCESS_WEBKIT_STORAGE_NAMESPACE_H_ |
| OLD | NEW |