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

Side by Side Diff: webkit/fileapi/isolated_file_util.h

Issue 15371005: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/fileapi/file_writer_delegate_unittest.cc ('k') | webkit/fileapi/isolated_file_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "webkit/fileapi/local_file_util.h"
10 #include "webkit/storage/webkit_storage_export.h"
11
12 namespace fileapi {
13
14 class FileSystemOperationContext;
15
16 class WEBKIT_STORAGE_EXPORT_PRIVATE IsolatedFileUtil : public LocalFileUtil {
17 public:
18 IsolatedFileUtil();
19 virtual ~IsolatedFileUtil() {}
20
21 // LocalFileUtil overrides.
22 virtual base::PlatformFileError GetLocalFilePath(
23 FileSystemOperationContext* context,
24 const FileSystemURL& file_system_url,
25 base::FilePath* local_file_path) OVERRIDE;
26 };
27
28 // Dragged file system is a specialized IsolatedFileUtil where read access to
29 // the virtual root directory (i.e. empty cracked path case) is allowed
30 // and single isolated context may be associated with multiple file paths.
31 class WEBKIT_STORAGE_EXPORT_PRIVATE DraggedFileUtil : public IsolatedFileUtil {
32 public:
33 DraggedFileUtil();
34 virtual ~DraggedFileUtil() {}
35
36 // FileSystemFileUtil overrides.
37 virtual base::PlatformFileError GetFileInfo(
38 FileSystemOperationContext* context,
39 const FileSystemURL& url,
40 base::PlatformFileInfo* file_info,
41 base::FilePath* platform_path) OVERRIDE;
42 virtual scoped_ptr<AbstractFileEnumerator> CreateFileEnumerator(
43 FileSystemOperationContext* context,
44 const FileSystemURL& root_url) OVERRIDE;
45
46 private:
47 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil);
48 };
49
50 } // namespace fileapi
51
52 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_writer_delegate_unittest.cc ('k') | webkit/fileapi/isolated_file_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698