OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ | 5 #ifndef CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ |
6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ | 6 #define CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/hash_tables.h" | 9 #include "base/hash_tables.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // All the storage areas we own. | 61 // All the storage areas we own. |
62 typedef base::hash_map<string16, DOMStorageArea*> OriginToStorageAreaMap; | 62 typedef base::hash_map<string16, DOMStorageArea*> OriginToStorageAreaMap; |
63 OriginToStorageAreaMap origin_to_storage_area_; | 63 OriginToStorageAreaMap origin_to_storage_area_; |
64 | 64 |
65 // The DOMStorageContext that owns us. | 65 // The DOMStorageContext that owns us. |
66 DOMStorageContextImpl* dom_storage_context_; | 66 DOMStorageContextImpl* dom_storage_context_; |
67 | 67 |
68 // The WebKit storage namespace we manage. | 68 // The WebKit storage namespace we manage. |
69 scoped_ptr<WebKit::WebStorageNamespace> storage_namespace_; | 69 scoped_ptr<WebKit::WebStorageNamespace> storage_namespace_; |
70 | 70 |
71 // Our id. Unique to our parent WebKitContext class. | 71 // Our id. Unique to our parent DOMStorageContext class. |
72 int64 id_; | 72 int64 id_; |
73 | 73 |
74 // The path used to create us, so we can recreate our WebStorageNamespace on | 74 // The path used to create us, so we can recreate our WebStorageNamespace on |
75 // demand. | 75 // demand. |
76 WebKit::WebString data_dir_path_; | 76 WebKit::WebString data_dir_path_; |
77 | 77 |
78 // SessionStorage vs. LocalStorage. | 78 // SessionStorage vs. LocalStorage. |
79 const DOMStorageType dom_storage_type_; | 79 const DOMStorageType dom_storage_type_; |
80 | 80 |
81 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageNamespace); | 81 DISALLOW_IMPLICIT_CONSTRUCTORS(DOMStorageNamespace); |
82 }; | 82 }; |
83 | 83 |
84 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ | 84 #endif // CONTENT_BROWSER_IN_PROCESS_WEBKIT_DOM_STORAGE_NAMESPACE_H_ |
OLD | NEW |