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

Side by Side Diff: content/child/fileapi/file_system_dispatcher.cc

Issue 2640963002: LocalFileSystem::deleteFileSystem() is no longer used. (Closed)
Patch Set: remove more Created 3 years, 11 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/child/fileapi/file_system_dispatcher.h" 5 #include "content/child/fileapi/file_system_dispatcher.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 void FileSystemDispatcher::ResolveURL( 188 void FileSystemDispatcher::ResolveURL(
189 const GURL& filesystem_url, 189 const GURL& filesystem_url,
190 const ResolveURLCallback& success_callback, 190 const ResolveURLCallback& success_callback,
191 const StatusCallback& error_callback) { 191 const StatusCallback& error_callback) {
192 int request_id = dispatchers_.Add( 192 int request_id = dispatchers_.Add(
193 CallbackDispatcher::Create(success_callback, error_callback)); 193 CallbackDispatcher::Create(success_callback, error_callback));
194 ChildThreadImpl::current()->Send(new FileSystemHostMsg_ResolveURL( 194 ChildThreadImpl::current()->Send(new FileSystemHostMsg_ResolveURL(
195 request_id, filesystem_url)); 195 request_id, filesystem_url));
196 } 196 }
197 197
198 void FileSystemDispatcher::DeleteFileSystem(const GURL& origin_url,
199 storage::FileSystemType type,
200 const StatusCallback& callback) {
201 int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback));
202 ChildThreadImpl::current()->Send(new FileSystemHostMsg_DeleteFileSystem(
203 request_id, origin_url, type));
204 }
205
206 void FileSystemDispatcher::Move( 198 void FileSystemDispatcher::Move(
207 const GURL& src_path, 199 const GURL& src_path,
208 const GURL& dest_path, 200 const GURL& dest_path,
209 const StatusCallback& callback) { 201 const StatusCallback& callback) {
210 int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback)); 202 int request_id = dispatchers_.Add(CallbackDispatcher::Create(callback));
211 ChildThreadImpl::current()->Send(new FileSystemHostMsg_Move( 203 ChildThreadImpl::current()->Send(new FileSystemHostMsg_Move(
212 request_id, src_path, dest_path)); 204 request_id, src_path, dest_path));
213 } 205 }
214 206
215 void FileSystemDispatcher::Copy( 207 void FileSystemDispatcher::Copy(
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 int64_t bytes, 396 int64_t bytes,
405 bool complete) { 397 bool complete) {
406 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id); 398 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
407 DCHECK(dispatcher); 399 DCHECK(dispatcher);
408 dispatcher->DidWrite(bytes, complete); 400 dispatcher->DidWrite(bytes, complete);
409 if (complete) 401 if (complete)
410 dispatchers_.Remove(request_id); 402 dispatchers_.Remove(request_id);
411 } 403 }
412 404
413 } // namespace content 405 } // namespace content
OLDNEW
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698