| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 unsigned length(ExceptionState& ec) const { return m_storageArea->length(ec,
m_frame); } | 47 unsigned length(ExceptionState& ec) const { return m_storageArea->length(ec,
m_frame); } |
| 48 String key(unsigned index, ExceptionState& ec) const { return m_storageArea-
>key(index, ec, m_frame); } | 48 String key(unsigned index, ExceptionState& ec) const { return m_storageArea-
>key(index, ec, m_frame); } |
| 49 String getItem(const String& key, ExceptionState& ec) const { return m_stora
geArea->getItem(key, ec, m_frame); } | 49 String getItem(const String& key, ExceptionState& ec) const { return m_stora
geArea->getItem(key, ec, m_frame); } |
| 50 void setItem(const String& key, const String& value, ExceptionState& ec) { m
_storageArea->setItem(key, value, ec, m_frame); } | 50 void setItem(const String& key, const String& value, ExceptionState& ec) { m
_storageArea->setItem(key, value, ec, m_frame); } |
| 51 void removeItem(const String& key, ExceptionState& ec) { m_storageArea->remo
veItem(key, ec, m_frame); } | 51 void removeItem(const String& key, ExceptionState& ec) { m_storageArea->remo
veItem(key, ec, m_frame); } |
| 52 void clear(ExceptionState& ec) { m_storageArea->clear(ec, m_frame); } | 52 void clear(ExceptionState& ec) { m_storageArea->clear(ec, m_frame); } |
| 53 bool contains(const String& key, ExceptionState& ec) const { return m_storag
eArea->contains(key, ec, m_frame); } | 53 bool contains(const String& key, ExceptionState& ec) const { return m_storag
eArea->contains(key, ec, m_frame); } |
| 54 | 54 |
| 55 StorageArea* area() const { return m_storageArea.get(); } | 55 StorageArea* area() const { return m_storageArea.get(); } |
| 56 | 56 |
| 57 String anonymousIndexedGetter(unsigned, ExceptionState&); | |
| 58 String anonymousNamedGetter(const AtomicString&, ExceptionState&); | 57 String anonymousNamedGetter(const AtomicString&, ExceptionState&); |
| 59 bool anonymousNamedSetter(const AtomicString& name, const AtomicString& valu
e, ExceptionState&); | 58 bool anonymousNamedSetter(const AtomicString& name, const AtomicString& valu
e, ExceptionState&); |
| 60 bool anonymousIndexedSetter(unsigned, const AtomicString&, ExceptionState&); | |
| 61 DeleteResult anonymousNamedDeleter(const AtomicString&, ExceptionState&); | 59 DeleteResult anonymousNamedDeleter(const AtomicString&, ExceptionState&); |
| 62 DeleteResult anonymousIndexedDeleter(unsigned, ExceptionState&); | |
| 63 void namedPropertyEnumerator(Vector<String>&, ExceptionState&); | 60 void namedPropertyEnumerator(Vector<String>&, ExceptionState&); |
| 64 bool namedPropertyQuery(const AtomicString&, ExceptionState&); | 61 bool namedPropertyQuery(const AtomicString&, ExceptionState&); |
| 65 | 62 |
| 66 DECLARE_VIRTUAL_TRACE(); | 63 DECLARE_VIRTUAL_TRACE(); |
| 67 | 64 |
| 68 private: | 65 private: |
| 69 Storage(LocalFrame*, StorageArea*); | 66 Storage(LocalFrame*, StorageArea*); |
| 70 | 67 |
| 71 Member<StorageArea> m_storageArea; | 68 Member<StorageArea> m_storageArea; |
| 72 }; | 69 }; |
| 73 | 70 |
| 74 } // namespace blink | 71 } // namespace blink |
| 75 | 72 |
| 76 #endif // Storage_h | 73 #endif // Storage_h |
| OLD | NEW |