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

Side by Side Diff: Source/WebCore/storage/StorageAreaImpl.h

Issue 10377148: Revert 116712 - Source/WebCore: [chromium] DomStorage events handling needs TLC (2) (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1137/
Patch Set: Created 8 years, 7 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 | « Source/WebCore/storage/StorageArea.h ('k') | Source/WebCore/storage/StorageAreaImpl.cpp » ('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 28 matching lines...) Expand all
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/storage/StorageArea.h ('k') | Source/WebCore/storage/StorageAreaImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698