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

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

Issue 16328003: Move a bunch of child-only code from content/common to content/child (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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) 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/common/fileapi/file_system_dispatcher.h" 5 #include "content/child/fileapi/file_system_dispatcher.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/file_util.h" 8 #include "base/file_util.h"
9 #include "base/process.h" 9 #include "base/process.h"
10 #include "content/common/child_thread.h" 10 #include "content/child/child_thread.h"
11 #include "content/common/fileapi/file_system_messages.h" 11 #include "content/common/fileapi/file_system_messages.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 class FileSystemDispatcher::CallbackDispatcher { 15 class FileSystemDispatcher::CallbackDispatcher {
16 public: 16 public:
17 typedef CallbackDispatcher self; 17 typedef CallbackDispatcher self;
18 typedef FileSystemDispatcher::StatusCallback StatusCallback; 18 typedef FileSystemDispatcher::StatusCallback StatusCallback;
19 typedef FileSystemDispatcher::MetadataCallback MetadataCallback; 19 typedef FileSystemDispatcher::MetadataCallback MetadataCallback;
20 typedef FileSystemDispatcher::ReadDirectoryCallback ReadDirectoryCallback; 20 typedef FileSystemDispatcher::ReadDirectoryCallback ReadDirectoryCallback;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 quota::QuotaLimitType quota_policy) { 459 quota::QuotaLimitType quota_policy) {
460 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id); 460 CallbackDispatcher* dispatcher = dispatchers_.Lookup(request_id);
461 DCHECK(dispatcher); 461 DCHECK(dispatcher);
462 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file), 462 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file),
463 file_open_id, 463 file_open_id,
464 quota_policy); 464 quota_policy);
465 dispatchers_.Remove(request_id); 465 dispatchers_.Remove(request_id);
466 } 466 }
467 467
468 } // namespace content 468 } // namespace content
OLDNEW
« no previous file with comments | « content/child/fileapi/file_system_dispatcher.h ('k') | content/child/fileapi/webfilesystem_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698