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

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

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « webkit/browser/fileapi/dragged_file_util.h ('k') | webkit/browser/fileapi/dump_file_system.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "webkit/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 "webkit/browser/fileapi/file_system_context.h"
12 #include "webkit/browser/fileapi/file_system_operation_context.h" 12 #include "webkit/browser/fileapi/file_system_operation_context.h"
13 #include "webkit/browser/fileapi/file_system_url.h" 13 #include "webkit/browser/fileapi/file_system_url.h"
14 #include "webkit/browser/fileapi/isolated_context.h" 14 #include "webkit/browser/fileapi/isolated_context.h"
15 #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" 16 #include "webkit/common/blob/shareable_file_reference.h"
17 17
18 namespace fileapi { 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 {
27 public: 27 public:
28 explicit SetFileEnumerator(const std::vector<FileInfo>& files) 28 explicit SetFileEnumerator(const std::vector<FileInfo>& files)
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 if (!root.path().empty()) 95 if (!root.path().empty())
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 fileapi 105 } // namespace storage
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/dragged_file_util.h ('k') | webkit/browser/fileapi/dump_file_system.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698