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 28 matching lines...) Expand all Loading... |
39 | 39 |
40 class StorageAreaImpl : public StorageArea { | 40 class StorageAreaImpl : public StorageArea { |
41 public: | 41 public: |
42 static PassRefPtr<StorageAreaImpl> create(StorageType, PassRefPtr<Securi
tyOrigin>, PassRefPtr<StorageSyncManager>, unsigned quota); | 42 static PassRefPtr<StorageAreaImpl> create(StorageType, PassRefPtr<Securi
tyOrigin>, PassRefPtr<StorageSyncManager>, unsigned quota); |
43 virtual ~StorageAreaImpl(); | 43 virtual ~StorageAreaImpl(); |
44 | 44 |
45 // The HTML5 DOM Storage API (and contains) | 45 // The HTML5 DOM Storage API (and contains) |
46 virtual unsigned length(Frame* sourceFrame) const; | 46 virtual unsigned length(Frame* sourceFrame) const; |
47 virtual String key(unsigned index, Frame* sourceFrame) const; | 47 virtual String key(unsigned index, Frame* sourceFrame) const; |
48 virtual String getItem(const String& key, Frame* sourceFrame) const; | 48 virtual String getItem(const String& key, Frame* sourceFrame) const; |
49 virtual void setItem(const String& key, const String& value, ExceptionCo
de&, Frame* sourceFrame); | 49 virtual String setItem(const String& key, const String& value, Exception
Code& ec, Frame* sourceFrame); |
50 virtual void removeItem(const String& key, Frame* sourceFrame); | 50 virtual String removeItem(const String& key, Frame* sourceFrame); |
51 virtual void clear(Frame* sourceFrame); | 51 virtual bool clear(Frame* sourceFrame); |
52 virtual bool contains(const String& key, Frame* sourceFrame) const; | 52 virtual bool contains(const String& key, Frame* sourceFrame) const; |
53 | 53 |
54 virtual bool disabledByPrivateBrowsingInFrame(const Frame* sourceFrame)
const; | 54 virtual bool disabledByPrivateBrowsingInFrame(const Frame* sourceFrame)
const; |
55 | 55 |
56 PassRefPtr<StorageAreaImpl> copy(); | 56 PassRefPtr<StorageAreaImpl> copy(); |
57 void close(); | 57 void close(); |
58 | 58 |
59 // Only called from a background thread. | 59 // Only called from a background thread. |
60 void importItem(const String& key, const String& value); | 60 void importItem(const String& key, const String& value); |
61 | 61 |
(...skipping 16 matching lines...) Expand all Loading... |
78 RefPtr<StorageSyncManager> m_storageSyncManager; | 78 RefPtr<StorageSyncManager> m_storageSyncManager; |
79 | 79 |
80 #ifndef NDEBUG | 80 #ifndef NDEBUG |
81 bool m_isShutdown; | 81 bool m_isShutdown; |
82 #endif | 82 #endif |
83 }; | 83 }; |
84 | 84 |
85 } // namespace WebCore | 85 } // namespace WebCore |
86 | 86 |
87 #endif // StorageAreaImpl_h | 87 #endif // StorageAreaImpl_h |
OLD | NEW |