OLD | NEW |
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_HOST_H_ | 5 #ifndef WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ |
6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ | 6 #define WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // within our associated client process. | 53 // within our associated client process. |
54 struct NamespaceAndArea { | 54 struct NamespaceAndArea { |
55 scoped_refptr<DomStorageNamespace> namespace_; | 55 scoped_refptr<DomStorageNamespace> namespace_; |
56 scoped_refptr<DomStorageArea> area_; | 56 scoped_refptr<DomStorageArea> area_; |
57 NamespaceAndArea(); | 57 NamespaceAndArea(); |
58 ~NamespaceAndArea(); | 58 ~NamespaceAndArea(); |
59 }; | 59 }; |
60 typedef std::map<int, NamespaceAndArea > AreaMap; | 60 typedef std::map<int, NamespaceAndArea > AreaMap; |
61 | 61 |
62 DomStorageArea* GetOpenArea(int connection_id); | 62 DomStorageArea* GetOpenArea(int connection_id); |
| 63 DomStorageNamespace* GetNamespace(int connection_id); |
63 | 64 |
64 scoped_refptr<DomStorageContext> context_; | 65 scoped_refptr<DomStorageContext> context_; |
65 AreaMap connections_; | 66 AreaMap connections_; |
66 }; | 67 }; |
67 | 68 |
68 } // namespace dom_storage | 69 } // namespace dom_storage |
69 | 70 |
70 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ | 71 #endif // WEBKIT_DOM_STORAGE_DOM_STORAGE_HOST_H_ |
OLD | NEW |