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

Unified Diff: Source/core/storage/StorageNamespace.cpp

Issue 517043003: Move Frame to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Back out non-Oilpan experiment + tidy up by adding frame() ref accessors Created 6 years, 3 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/StorageNamespace.cpp
diff --git a/Source/core/storage/StorageNamespace.cpp b/Source/core/storage/StorageNamespace.cpp
index 7cadabe6c0129fa2e9a77a738bb5e4a9f50729f3..fabce9fb3cefc3e22df8488f21a4bda2f7ed04a8 100644
--- a/Source/core/storage/StorageNamespace.cpp
+++ b/Source/core/storage/StorageNamespace.cpp
@@ -35,7 +35,7 @@
namespace blink {
-StorageNamespace::StorageNamespace(PassOwnPtr<blink::WebStorageNamespace> webStorageNamespace)
+StorageNamespace::StorageNamespace(PassOwnPtr<WebStorageNamespace> webStorageNamespace)
: m_webStorageNamespace(webStorageNamespace)
{
}
@@ -47,18 +47,18 @@ StorageNamespace::~StorageNamespace()
PassOwnPtrWillBeRawPtr<StorageArea> StorageNamespace::localStorageArea(SecurityOrigin* origin)
{
ASSERT(isMainThread());
- static blink::WebStorageNamespace* localStorageNamespace = 0;
+ static WebStorageNamespace* localStorageNamespace = 0;
if (!localStorageNamespace)
- localStorageNamespace = blink::Platform::current()->createLocalStorageNamespace();
- return adoptPtrWillBeNoop(new StorageArea(adoptPtr(localStorageNamespace->createStorageArea(origin->toString())), LocalStorage));
+ localStorageNamespace = Platform::current()->createLocalStorageNamespace();
+ return StorageArea::create(adoptPtr(localStorageNamespace->createStorageArea(origin->toString())), LocalStorage);
}
PassOwnPtrWillBeRawPtr<StorageArea> StorageNamespace::storageArea(SecurityOrigin* origin)
{
- return adoptPtrWillBeNoop(new StorageArea(adoptPtr(m_webStorageNamespace->createStorageArea(origin->toString())), SessionStorage));
+ return StorageArea::create(adoptPtr(m_webStorageNamespace->createStorageArea(origin->toString())), SessionStorage);
}
-bool StorageNamespace::isSameNamespace(const blink::WebStorageNamespace& sessionNamespace) const
+bool StorageNamespace::isSameNamespace(const WebStorageNamespace& sessionNamespace) const
{
return m_webStorageNamespace && m_webStorageNamespace->isSameNamespace(sessionNamespace);
}

Powered by Google App Engine
This is Rietveld 408576698