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

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

Issue 7433006: Pepper quota support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 5 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/file_system/file_system_dispatcher.h" 5 #include "content/common/file_system/file_system_dispatcher.h"
6 6
7 #include "base/file_util.h" 7 #include "base/file_util.h"
8 #include "base/process.h" 8 #include "base/process.h"
9 #include "content/common/child_thread.h" 9 #include "content/common/child_thread.h"
10 #include "content/common/file_system_messages.h" 10 #include "content/common/file_system_messages.h"
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 int request_id, int64 bytes, bool complete) { 285 int request_id, int64 bytes, bool complete) {
286 fileapi::FileSystemCallbackDispatcher* dispatcher = 286 fileapi::FileSystemCallbackDispatcher* dispatcher =
287 dispatchers_.Lookup(request_id); 287 dispatchers_.Lookup(request_id);
288 DCHECK(dispatcher); 288 DCHECK(dispatcher);
289 dispatcher->DidWrite(bytes, complete); 289 dispatcher->DidWrite(bytes, complete);
290 if (complete) 290 if (complete)
291 dispatchers_.Remove(request_id); 291 dispatchers_.Remove(request_id);
292 } 292 }
293 293
294 void FileSystemDispatcher::OnDidOpenFile( 294 void FileSystemDispatcher::OnDidOpenFile(
295 int request_id, IPC::PlatformFileForTransit file) { 295 int request_id, IPC::PlatformFileForTransit file,
296 int64 file_size) {
296 fileapi::FileSystemCallbackDispatcher* dispatcher = 297 fileapi::FileSystemCallbackDispatcher* dispatcher =
297 dispatchers_.Lookup(request_id); 298 dispatchers_.Lookup(request_id);
298 DCHECK(dispatcher); 299 DCHECK(dispatcher);
299 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file), 300 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file),
300 base::kNullProcessHandle); 301 base::kNullProcessHandle, file_size);
301 dispatchers_.Remove(request_id); 302 dispatchers_.Remove(request_id);
302 } 303 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698