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