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

Unified Diff: content/common/file_system/webfilewriter_impl.cc

Issue 6833007: More filesystem cleanup: convert URL-encoded-as-FilePath to actual URL, where (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
« no previous file with comments | « content/common/file_system/webfilewriter_impl.h ('k') | content/common/file_system_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/file_system/webfilewriter_impl.cc
===================================================================
--- content/common/file_system/webfilewriter_impl.cc (revision 81454)
+++ content/common/file_system/webfilewriter_impl.cc (working copy)
@@ -32,7 +32,7 @@
NOTREACHED();
}
virtual void DidOpenFileSystem(const std::string& name,
- const FilePath& root_path) {
+ const GURL& root) {
NOTREACHED();
}
virtual void DidSucceed() {
@@ -53,7 +53,7 @@
};
WebFileWriterImpl::WebFileWriterImpl(
- const WebKit::WebString& path, WebKit::WebFileWriterClient* client)
+ const GURL& path, WebKit::WebFileWriterClient* client)
: WebFileWriterBase(path, client),
request_id_(0) {
}
@@ -61,16 +61,17 @@
WebFileWriterImpl::~WebFileWriterImpl() {
}
-void WebFileWriterImpl::DoTruncate(const FilePath& path, int64 offset) {
+void WebFileWriterImpl::DoTruncate(const GURL& path, int64 offset) {
// The FileSystemDispatcher takes ownership of the CallbackDispatcher.
GetFileSystemDispatcher()->Truncate(path, offset, &request_id_,
new CallbackDispatcher(AsWeakPtr()));
}
void WebFileWriterImpl::DoWrite(
- const FilePath& path, const GURL& blob_url, int64 offset) {
- GetFileSystemDispatcher()->Write(path, blob_url, offset, &request_id_,
- new CallbackDispatcher(AsWeakPtr()));
+ const GURL& path, const GURL& blob_url, int64 offset) {
+ GetFileSystemDispatcher()->Write(
+ path, blob_url, offset, &request_id_,
+ new CallbackDispatcher(AsWeakPtr()));
}
void WebFileWriterImpl::DoCancel() {
« no previous file with comments | « content/common/file_system/webfilewriter_impl.h ('k') | content/common/file_system_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698