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

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

Issue 810403004: [Storage] Blob Storage Refactoring pt 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed copyright Created 5 years, 11 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 "storage/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/files/file_util.h" 10 #include "base/files/file_util.h"
11 #include "storage/browser/blob/shareable_file_reference.h"
11 #include "storage/browser/fileapi/file_system_context.h" 12 #include "storage/browser/fileapi/file_system_context.h"
12 #include "storage/browser/fileapi/file_system_operation_context.h" 13 #include "storage/browser/fileapi/file_system_operation_context.h"
13 #include "storage/browser/fileapi/file_system_url.h" 14 #include "storage/browser/fileapi/file_system_url.h"
14 #include "storage/browser/fileapi/isolated_context.h" 15 #include "storage/browser/fileapi/isolated_context.h"
15 #include "storage/browser/fileapi/native_file_util.h" 16 #include "storage/browser/fileapi/native_file_util.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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 return LocalFileUtil::CreateFileEnumerator(context, root); 94 return LocalFileUtil::CreateFileEnumerator(context, root);
95 95
96 // Root path case. 96 // Root path case.
97 std::vector<FileInfo> toplevels; 97 std::vector<FileInfo> toplevels;
98 IsolatedContext::GetInstance()->GetDraggedFileInfo( 98 IsolatedContext::GetInstance()->GetDraggedFileInfo(
99 root.filesystem_id(), &toplevels); 99 root.filesystem_id(), &toplevels);
100 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels)); 100 return scoped_ptr<AbstractFileEnumerator>(new SetFileEnumerator(toplevels));
101 } 101 }
102 102
103 } // namespace storage 103 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698