OLD | NEW |
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 Loading... |
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 |
OLD | NEW |