Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: WebCore/storage/Storage.h

Issue 10012034: WebKit/WebCore DomStorage House cleaning (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/WebCore.gyp/WebCore.gyp ('k') | WebCore/storage/StorageEventDispatcher.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « WebCore/WebCore.gyp/WebCore.gyp ('k') | WebCore/storage/StorageEventDispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698