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

Side by Side Diff: Source/WebCore/storage/StorageArea.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 | « no previous file | Source/WebCore/storage/StorageAreaImpl.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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // This interface is required for Chromium since these actions need to be pr oxied between processes. 42 // This interface is required for Chromium since these actions need to be pr oxied between processes.
43 class StorageArea : public RefCounted<StorageArea> { 43 class StorageArea : public RefCounted<StorageArea> {
44 public: 44 public:
45 virtual ~StorageArea() { } 45 virtual ~StorageArea() { }
46 46
47 // The HTML5 DOM Storage API 47 // The HTML5 DOM Storage API
48 // FIXME: We should pass Document instead of Frame. Also, that parameter should go first. 48 // FIXME: We should pass Document instead of Frame. Also, that parameter should go first.
49 virtual unsigned length(Frame* sourceFrame) const = 0; 49 virtual unsigned length(Frame* sourceFrame) const = 0;
50 virtual String key(unsigned index, Frame* sourceFrame) const = 0; 50 virtual String key(unsigned index, Frame* sourceFrame) const = 0;
51 virtual String getItem(const String& key, Frame* sourceFrame) const = 0; 51 virtual String getItem(const String& key, Frame* sourceFrame) const = 0;
52 virtual void setItem(const String& key, const String& value, ExceptionCo de&, Frame* sourceFrame) = 0; 52 virtual String setItem(const String& key, const String& value, Exception Code& ec, Frame* sourceFrame) = 0;
53 virtual void removeItem(const String& key, Frame* sourceFrame) = 0; 53 virtual String removeItem(const String& key, Frame* sourceFrame) = 0;
54 virtual void clear(Frame* sourceFrame) = 0; 54 virtual bool clear(Frame* sourceFrame) = 0;
55 virtual bool contains(const String& key, Frame* sourceFrame) const = 0; 55 virtual bool contains(const String& key, Frame* sourceFrame) const = 0;
56 56
57 virtual bool disabledByPrivateBrowsingInFrame(const Frame* sourceFrame) const = 0; 57 virtual bool disabledByPrivateBrowsingInFrame(const Frame* sourceFrame) const = 0;
58 }; 58 };
59 59
60 } // namespace WebCore 60 } // namespace WebCore
61 61
62 #endif // StorageArea_h 62 #endif // StorageArea_h
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/storage/StorageAreaImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698