OLD | NEW |
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 #ifndef STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ |
6 #define STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "storage/browser/fileapi/local_file_util.h" | 9 #include "storage/browser/fileapi/local_file_util.h" |
10 #include "storage/browser/storage_browser_export.h" | 10 #include "storage/browser/storage_browser_export.h" |
11 | 11 |
12 namespace storage { | 12 namespace storage { |
13 | 13 |
14 class FileSystemOperationContext; | 14 class FileSystemOperationContext; |
15 | 15 |
16 // Dragged file system is a specialized LocalFileUtil where read access to | 16 // Dragged file system is a specialized LocalFileUtil where read access to |
17 // the virtual root directory (i.e. empty cracked path case) is allowed | 17 // the virtual root directory (i.e. empty cracked path case) is allowed |
18 // and single isolated context may be associated with multiple file paths. | 18 // and single isolated context may be associated with multiple file paths. |
19 class STORAGE_EXPORT_PRIVATE DraggedFileUtil | 19 class STORAGE_EXPORT DraggedFileUtil : public LocalFileUtil { |
20 : public LocalFileUtil { | |
21 public: | 20 public: |
22 DraggedFileUtil(); | 21 DraggedFileUtil(); |
23 ~DraggedFileUtil() override {} | 22 ~DraggedFileUtil() override {} |
24 | 23 |
25 // FileSystemFileUtil overrides. | 24 // FileSystemFileUtil overrides. |
26 base::File::Error GetFileInfo(FileSystemOperationContext* context, | 25 base::File::Error GetFileInfo(FileSystemOperationContext* context, |
27 const FileSystemURL& url, | 26 const FileSystemURL& url, |
28 base::File::Info* file_info, | 27 base::File::Info* file_info, |
29 base::FilePath* platform_path) override; | 28 base::FilePath* platform_path) override; |
30 scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( | 29 scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator( |
31 FileSystemOperationContext* context, | 30 FileSystemOperationContext* context, |
32 const FileSystemURL& root_url) override; | 31 const FileSystemURL& root_url) override; |
33 | 32 |
34 private: | 33 private: |
35 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil); | 34 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil); |
36 }; | 35 }; |
37 | 36 |
38 } // namespace storage | 37 } // namespace storage |
39 | 38 |
40 #endif // STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ | 39 #endif // STORAGE_BROWSER_FILEAPI_DRAGGED_FILE_UTIL_H_ |
OLD | NEW |