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 "webkit/browser/fileapi/isolated_file_util.h" | 5 #include "webkit/browser/fileapi/isolated_file_util.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
11 #include "webkit/blob/shareable_file_reference.h" | |
12 #include "webkit/browser/fileapi/file_system_context.h" | 11 #include "webkit/browser/fileapi/file_system_context.h" |
13 #include "webkit/browser/fileapi/file_system_operation_context.h" | 12 #include "webkit/browser/fileapi/file_system_operation_context.h" |
14 #include "webkit/browser/fileapi/file_system_url.h" | 13 #include "webkit/browser/fileapi/file_system_url.h" |
15 #include "webkit/browser/fileapi/isolated_context.h" | 14 #include "webkit/browser/fileapi/isolated_context.h" |
16 #include "webkit/browser/fileapi/native_file_util.h" | 15 #include "webkit/browser/fileapi/native_file_util.h" |
| 16 #include "webkit/common/blob/shareable_file_reference.h" |
17 | 17 |
18 using base::PlatformFileError; | 18 using base::PlatformFileError; |
19 using base::PlatformFileInfo; | 19 using base::PlatformFileInfo; |
20 | 20 |
21 namespace fileapi { | 21 namespace fileapi { |
22 | 22 |
23 typedef IsolatedContext::MountPointInfo FileInfo; | 23 typedef IsolatedContext::MountPointInfo FileInfo; |
24 | 24 |
25 namespace { | 25 namespace { |
26 | 26 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 return LocalFileUtil::CreateFileEnumerator(context, root); | 117 return LocalFileUtil::CreateFileEnumerator(context, root); |
118 | 118 |
119 // Root path case. | 119 // Root path case. |
120 std::vector<FileInfo> toplevels; | 120 std::vector<FileInfo> toplevels; |
121 IsolatedContext::GetInstance()->GetDraggedFileInfo( | 121 IsolatedContext::GetInstance()->GetDraggedFileInfo( |
122 root.filesystem_id(), &toplevels); | 122 root.filesystem_id(), &toplevels); |
123 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels)); | 123 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels)); |
124 } | 124 } |
125 | 125 |
126 } // namespace fileapi | 126 } // namespace fileapi |
OLD | NEW |