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

Unified Diff: Source/core/storage/Storage.h

Issue 879423003: Move Location to DOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/storage/Storage.h
diff --git a/Source/core/storage/Storage.h b/Source/core/storage/Storage.h
index 6341cc5eae502557c3d11ad1d6ac359025e1ba1b..44a6ffdc77afa601dce7bbeeeaf74d3ff612e0f2 100644
--- a/Source/core/storage/Storage.h
+++ b/Source/core/storage/Storage.h
@@ -47,13 +47,13 @@ class Storage final : public RefCountedWillBeGarbageCollected<Storage>, public S
public:
static PassRefPtrWillBeRawPtr<Storage> create(LocalFrame*, PassOwnPtrWillBeRawPtr<StorageArea>);
- unsigned length(ExceptionState& ec) const { return m_storageArea->length(ec, m_frame); }
- String key(unsigned index, ExceptionState& ec) const { return m_storageArea->key(index, ec, m_frame); }
- String getItem(const String& key, ExceptionState& ec) const { return m_storageArea->getItem(key, ec, m_frame); }
- void setItem(const String& key, const String& value, ExceptionState& ec) { m_storageArea->setItem(key, value, ec, m_frame); }
- void removeItem(const String& key, ExceptionState& ec) { m_storageArea->removeItem(key, ec, m_frame); }
- void clear(ExceptionState& ec) { m_storageArea->clear(ec, m_frame); }
- bool contains(const String& key, ExceptionState& ec) const { return m_storageArea->contains(key, ec, m_frame); }
+ unsigned length(ExceptionState& ec) const { return m_storageArea->length(ec, localFrame()); }
+ String key(unsigned index, ExceptionState& ec) const { return m_storageArea->key(index, ec, localFrame()); }
+ String getItem(const String& key, ExceptionState& ec) const { return m_storageArea->getItem(key, ec, localFrame()); }
+ void setItem(const String& key, const String& value, ExceptionState& ec) { m_storageArea->setItem(key, value, ec, localFrame()); }
+ void removeItem(const String& key, ExceptionState& ec) { m_storageArea->removeItem(key, ec, localFrame()); }
+ void clear(ExceptionState& ec) { m_storageArea->clear(ec, localFrame()); }
+ bool contains(const String& key, ExceptionState& ec) const { return m_storageArea->contains(key, ec, localFrame()); }
StorageArea* area() const { return m_storageArea.get(); }

Powered by Google App Engine
This is Rietveld 408576698