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

Unified Diff: webkit/tools/test_shell/simple_file_writer.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 | « webkit/tools/test_shell/simple_file_writer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/simple_file_writer.cc
===================================================================
--- webkit/tools/test_shell/simple_file_writer.cc (revision 81454)
+++ webkit/tools/test_shell/simple_file_writer.cc (working copy)
@@ -45,7 +45,7 @@
virtual ~IOThreadProxy() {
}
- void Truncate(const FilePath& path, int64 offset) {
+ void Truncate(const GURL& path, int64 offset) {
if (!io_thread_->BelongsToCurrentThread()) {
io_thread_->PostTask(FROM_HERE, NewRunnableMethod(
this, &IOThreadProxy::Truncate, path, offset));
@@ -56,7 +56,7 @@
operation_->Truncate(path, offset);
}
- void Write(const FilePath& path, const GURL& blob_url, int64 offset) {
+ void Write(const GURL& path, const GURL& blob_url, int64 offset) {
if (!io_thread_->BelongsToCurrentThread()) {
io_thread_->PostTask(FROM_HERE, NewRunnableMethod(
this, &IOThreadProxy::Write, path, blob_url, offset));
@@ -118,7 +118,7 @@
virtual void DidOpenFileSystem(
const std::string& name,
- const FilePath& root_path) {
+ const GURL& root) {
NOTREACHED();
}
@@ -181,7 +181,7 @@
SimpleFileWriter::SimpleFileWriter(
- const WebString& path,
+ const GURL& path,
WebFileWriterClient* client,
FileSystemContext* file_system_context)
: WebFileWriterBase(path, client),
@@ -191,12 +191,12 @@
SimpleFileWriter::~SimpleFileWriter() {
}
-void SimpleFileWriter::DoTruncate(const FilePath& path, int64 offset) {
+void SimpleFileWriter::DoTruncate(const GURL& path, int64 offset) {
io_thread_proxy_->Truncate(path, offset);
}
void SimpleFileWriter::DoWrite(
- const FilePath& path, const GURL& blob_url, int64 offset) {
+ const GURL& path, const GURL& blob_url, int64 offset) {
io_thread_proxy_->Write(path, blob_url, offset);
}
« no previous file with comments | « webkit/tools/test_shell/simple_file_writer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698