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

Side by Side Diff: chrome/common/file_system/file_system_dispatcher.cc

Issue 3599011: Add truncate and cancel for FileWriter; write and tests will come in later CL... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/common/file_system/file_system_dispatcher.h" 5 #include "chrome/common/file_system/file_system_dispatcher.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "chrome/common/child_thread.h" 8 #include "chrome/common/child_thread.h"
9 #include "chrome/common/render_messages.h" 9 #include "chrome/common/render_messages.h"
10 #include "chrome/common/render_messages_params.h" 10 #include "chrome/common/render_messages_params.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 DCHECK(dispatcher); 208 DCHECK(dispatcher);
209 dispatcher->DidFail(error_code); 209 dispatcher->DidFail(error_code);
210 dispatchers_.Remove(request_id); 210 dispatchers_.Remove(request_id);
211 } 211 }
212 212
213 void FileSystemDispatcher::DidWrite( 213 void FileSystemDispatcher::DidWrite(
214 int request_id, int64 bytes, bool complete) { 214 int request_id, int64 bytes, bool complete) {
215 fileapi::FileSystemCallbackDispatcher* dispatcher = 215 fileapi::FileSystemCallbackDispatcher* dispatcher =
216 dispatchers_.Lookup(request_id); 216 dispatchers_.Lookup(request_id);
217 DCHECK(dispatcher); 217 DCHECK(dispatcher);
218 // TODO(ericu): Coming soon. 218 dispatcher->DidWrite(bytes, complete);
219 // dispatcher->DidWrite(bytes, complete);
220 if (complete) 219 if (complete)
221 dispatchers_.Remove(request_id); 220 dispatchers_.Remove(request_id);
222 } 221 }
223 222
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698