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

Side by Side Diff: storage/browser/fileapi/dragged_file_util.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/dragged_file_util.h" 5 #include "storage/browser/fileapi/dragged_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/browser/fileapi/file_system_context.h" 11 #include "storage/browser/fileapi/file_system_context.h"
12 #include "webkit/browser/fileapi/file_system_operation_context.h" 12 #include "storage/browser/fileapi/file_system_operation_context.h"
13 #include "webkit/browser/fileapi/file_system_url.h" 13 #include "storage/browser/fileapi/file_system_url.h"
14 #include "webkit/browser/fileapi/isolated_context.h" 14 #include "storage/browser/fileapi/isolated_context.h"
15 #include "webkit/browser/fileapi/native_file_util.h" 15 #include "storage/browser/fileapi/native_file_util.h"
16 #include "webkit/common/blob/shareable_file_reference.h" 16 #include "storage/common/blob/shareable_file_reference.h"
17 17
18 namespace storage { 18 namespace storage {
19 19
20 typedef IsolatedContext::MountPointInfo FileInfo; 20 typedef IsolatedContext::MountPointInfo FileInfo;
21 21
22 namespace { 22 namespace {
23 23
24 // Simply enumerate each path from a given fileinfo set. 24 // Simply enumerate each path from a given fileinfo set.
25 // Used to enumerate top-level paths of an isolated filesystem. 25 // Used to enumerate top-level paths of an isolated filesystem.
26 class SetFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator { 26 class SetFileEnumerator : public FileSystemFileUtil::AbstractFileEnumerator {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 return LocalFileUtil::CreateFileEnumerator(context, root); 96 return LocalFileUtil::CreateFileEnumerator(context, root);
97 97
98 // Root path case. 98 // Root path case.
99 std::vector<FileInfo> toplevels; 99 std::vector<FileInfo> toplevels;
100 IsolatedContext::GetInstance()->GetDraggedFileInfo( 100 IsolatedContext::GetInstance()->GetDraggedFileInfo(
101 root.filesystem_id(), &toplevels); 101 root.filesystem_id(), &toplevels);
102 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels)); 102 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels));
103 } 103 }
104 104
105 } // namespace storage 105 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698