OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 unsigned length() const; | 45 unsigned length() const; |
46 String key(unsigned index) const; | 46 String key(unsigned index) const; |
47 String getItem(const String&) const; | 47 String getItem(const String&) const; |
48 void setItem(const String& key, const String& value, ExceptionCode&); | 48 void setItem(const String& key, const String& value, ExceptionCode&); |
49 void removeItem(const String&); | 49 void removeItem(const String&); |
50 void clear(); | 50 void clear(); |
51 | 51 |
52 bool contains(const String& key) const; | 52 bool contains(const String& key) const; |
53 | 53 |
| 54 // FIXME: not yet |
| 55 StorageArea* area() const { return m_storageArea.get(); } |
| 56 |
54 private: | 57 private: |
55 Storage(Frame*, PassRefPtr<StorageArea>); | 58 Storage(Frame*, PassRefPtr<StorageArea>); |
56 | 59 |
57 RefPtr<StorageArea> m_storageArea; | 60 RefPtr<StorageArea> m_storageArea; |
58 }; | 61 }; |
59 | 62 |
60 } // namespace WebCore | 63 } // namespace WebCore |
61 | 64 |
62 #endif // Storage_h | 65 #endif // Storage_h |
OLD | NEW |