summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp')
-rw-r--r--chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp b/chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
index faa99c554ce..99e1e8579e4 100644
--- a/chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
+++ b/chromium/third_party/WebKit/Source/modules/filesystem/DOMWindowFileSystem.cpp
@@ -28,7 +28,7 @@
#include "core/dom/Document.h"
#include "core/fileapi/FileError.h"
-#include "core/frame/DOMWindow.h"
+#include "core/frame/LocalDOMWindow.h"
#include "modules/filesystem/DOMFileSystem.h"
#include "modules/filesystem/EntryCallback.h"
#include "modules/filesystem/ErrorCallback.h"
@@ -48,12 +48,12 @@ DOMWindowFileSystem::~DOMWindowFileSystem()
{
}
-void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow* window, int type, long long size, PassOwnPtr<FileSystemCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
+void DOMWindowFileSystem::webkitRequestFileSystem(LocalDOMWindow& window, int type, long long size, PassOwnPtr<FileSystemCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
{
- if (!window->isCurrentlyDisplayedInFrame())
+ if (!window.isCurrentlyDisplayedInFrame())
return;
- Document* document = window->document();
+ Document* document = window.document();
if (!document)
return;
@@ -68,15 +68,15 @@ void DOMWindowFileSystem::webkitRequestFileSystem(DOMWindow* window, int type, l
return;
}
- LocalFileSystem::from(document)->requestFileSystem(document, fileSystemType, size, FileSystemCallbacks::create(successCallback, errorCallback, document, fileSystemType));
+ LocalFileSystem::from(*document)->requestFileSystem(document, fileSystemType, size, FileSystemCallbacks::create(successCallback, errorCallback, document, fileSystemType));
}
-void DOMWindowFileSystem::webkitResolveLocalFileSystemURL(DOMWindow* window, const String& url, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
+void DOMWindowFileSystem::webkitResolveLocalFileSystemURL(LocalDOMWindow& window, const String& url, PassOwnPtr<EntryCallback> successCallback, PassOwnPtr<ErrorCallback> errorCallback)
{
- if (!window->isCurrentlyDisplayedInFrame())
+ if (!window.isCurrentlyDisplayedInFrame())
return;
- Document* document = window->document();
+ Document* document = window.document();
if (!document)
return;
@@ -92,7 +92,7 @@ void DOMWindowFileSystem::webkitResolveLocalFileSystemURL(DOMWindow* window, con
return;
}
- LocalFileSystem::from(document)->resolveURL(document, completedURL, ResolveURICallbacks::create(successCallback, errorCallback, document));
+ LocalFileSystem::from(*document)->resolveURL(document, completedURL, ResolveURICallbacks::create(successCallback, errorCallback, document));
}
COMPILE_ASSERT(static_cast<int>(DOMWindowFileSystem::TEMPORARY) == static_cast<int>(FileSystemTypeTemporary), enum_mismatch);