OLD | NEW |
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/common/fileapi/file_system_dispatcher.h" |
6 | 6 |
7 #include "base/file_util.h" | |
8 #include "base/process.h" | 7 #include "base/process.h" |
9 #include "content/common/child_thread.h" | 8 #include "content/common/child_thread.h" |
10 #include "content/common/fileapi/file_system_messages.h" | 9 #include "content/common/fileapi/file_system_messages.h" |
11 | 10 |
12 namespace content { | 11 namespace content { |
13 | 12 |
14 FileSystemDispatcher::FileSystemDispatcher() { | 13 FileSystemDispatcher::FileSystemDispatcher() { |
15 } | 14 } |
16 | 15 |
17 FileSystemDispatcher::~FileSystemDispatcher() { | 16 FileSystemDispatcher::~FileSystemDispatcher() { |
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 fileapi::FileSystemCallbackDispatcher* dispatcher = | 343 fileapi::FileSystemCallbackDispatcher* dispatcher = |
345 dispatchers_.Lookup(request_id); | 344 dispatchers_.Lookup(request_id); |
346 DCHECK(dispatcher); | 345 DCHECK(dispatcher); |
347 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file), | 346 dispatcher->DidOpenFile(IPC::PlatformFileForTransitToPlatformFile(file), |
348 file_open_id, | 347 file_open_id, |
349 quota_policy); | 348 quota_policy); |
350 dispatchers_.Remove(request_id); | 349 dispatchers_.Remove(request_id); |
351 } | 350 } |
352 | 351 |
353 } // namespace content | 352 } // namespace content |
OLD | NEW |