void InspectorDOMStorageAgent::getDOMStorageItems(ErrorString* errorString, const RefPtr<JSONObject>& storageId, RefPtr<TypeBuilder::Array<TypeBuilder::Array<String> > >& items)
{
Frame* frame;
- OwnPtr<StorageArea> storageArea = findStorageArea(errorString, storageId, frame);
+ OwnPtrWillBeRawPtr<StorageArea> storageArea = findStorageArea(errorString, storageId, frame);
if (!storageArea)
return;
void InspectorDOMStorageAgent::setDOMStorageItem(ErrorString* errorString, const RefPtr<JSONObject>& storageId, const String& key, const String& value)
{
Frame* frame;
- OwnPtr<StorageArea> storageArea = findStorageArea(0, storageId, frame);
+ OwnPtrWillBeRawPtr<StorageArea> storageArea = findStorageArea(0, storageId, frame);
if (!storageArea) {
*errorString = "Storage not found";
return;
void InspectorDOMStorageAgent::removeDOMStorageItem(ErrorString* errorString, const RefPtr<JSONObject>& storageId, const String& key)
{
Frame* frame;
- OwnPtr<StorageArea> storageArea = findStorageArea(0, storageId, frame);
+ OwnPtrWillBeRawPtr<StorageArea> storageArea = findStorageArea(0, storageId, frame);
if (!storageArea) {
*errorString = "Storage not found";
return;
*errorString = toErrorString(exceptionState);
}
-String InspectorDOMStorageAgent::storageId(Storage* storage)
-{
- ASSERT(storage);
- Document* document = storage->frame()->document();
- ASSERT(document);
- DOMWindow* window = document->domWindow();
- ASSERT(window);
- RefPtr<SecurityOrigin> securityOrigin = document->securityOrigin();
- bool isLocalStorage = window->optionalLocalStorage() == storage;
- return storageId(securityOrigin.get(), isLocalStorage)->toJSONString();
-}
-
PassRefPtr<TypeBuilder::DOMStorage::StorageId> InspectorDOMStorageAgent::storageId(SecurityOrigin* securityOrigin, bool isLocalStorage)
{
return TypeBuilder::DOMStorage::StorageId::create()
m_frontend->domstorage()->domStorageItemUpdated(id, key, oldValue, newValue);
}
-PassOwnPtr<StorageArea> InspectorDOMStorageAgent::findStorageArea(ErrorString* errorString, const RefPtr<JSONObject>& storageId, Frame*& targetFrame)
+PassOwnPtrWillBeRawPtr<StorageArea> InspectorDOMStorageAgent::findStorageArea(ErrorString* errorString, const RefPtr<JSONObject>& storageId, Frame*& targetFrame)
{
String securityOrigin;
bool isLocalStorage = false;