| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |