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

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

Issue 11103031: webkit: Merge blob and fileapi into one build target 'storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave *.gypi files in blob and fileapi Created 8 years, 2 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/isolated_context.h ('k') | webkit/fileapi/local_file_stream_writer.h » ('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 (c) 2012 The Chromium Authors. All rights reserved. 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 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 WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ 5 #ifndef WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ 6 #define WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
7 7
8 #include "webkit/fileapi/fileapi_export.h"
9 #include "webkit/fileapi/local_file_util.h" 8 #include "webkit/fileapi/local_file_util.h"
9 #include "webkit/storage/webkit_storage_export.h"
10 10
11 namespace fileapi { 11 namespace fileapi {
12 12
13 class FileSystemOperationContext; 13 class FileSystemOperationContext;
14 14
15 class FILEAPI_EXPORT_PRIVATE IsolatedFileUtil : public LocalFileUtil { 15 class WEBKIT_STORAGE_EXPORT_PRIVATE IsolatedFileUtil : public LocalFileUtil {
16 public: 16 public:
17 IsolatedFileUtil(); 17 IsolatedFileUtil();
18 virtual ~IsolatedFileUtil() {} 18 virtual ~IsolatedFileUtil() {}
19 19
20 // LocalFileUtil overrides. 20 // LocalFileUtil overrides.
21 virtual PlatformFileError GetLocalFilePath( 21 virtual PlatformFileError GetLocalFilePath(
22 FileSystemOperationContext* context, 22 FileSystemOperationContext* context,
23 const FileSystemURL& file_system_url, 23 const FileSystemURL& file_system_url,
24 FilePath* local_file_path) OVERRIDE; 24 FilePath* local_file_path) OVERRIDE;
25 }; 25 };
26 26
27 // Dragged file system is a specialized IsolatedFileUtil where read access to 27 // Dragged file system is a specialized IsolatedFileUtil where read access to
28 // the virtual root directory (i.e. empty cracked path case) is allowed 28 // the virtual root directory (i.e. empty cracked path case) is allowed
29 // and single isolated context may be associated with multiple file paths. 29 // and single isolated context may be associated with multiple file paths.
30 class FILEAPI_EXPORT_PRIVATE DraggedFileUtil : public IsolatedFileUtil { 30 class WEBKIT_STORAGE_EXPORT_PRIVATE DraggedFileUtil : public IsolatedFileUtil {
31 public: 31 public:
32 DraggedFileUtil(); 32 DraggedFileUtil();
33 virtual ~DraggedFileUtil() {} 33 virtual ~DraggedFileUtil() {}
34 34
35 // FileSystemFileUtil overrides. 35 // FileSystemFileUtil overrides.
36 virtual base::PlatformFileError GetFileInfo( 36 virtual base::PlatformFileError GetFileInfo(
37 FileSystemOperationContext* context, 37 FileSystemOperationContext* context,
38 const FileSystemURL& url, 38 const FileSystemURL& url,
39 base::PlatformFileInfo* file_info, 39 base::PlatformFileInfo* file_info,
40 FilePath* platform_path) OVERRIDE; 40 FilePath* platform_path) OVERRIDE;
41 virtual AbstractFileEnumerator* CreateFileEnumerator( 41 virtual AbstractFileEnumerator* CreateFileEnumerator(
42 FileSystemOperationContext* context, 42 FileSystemOperationContext* context,
43 const FileSystemURL& root_url, 43 const FileSystemURL& root_url,
44 bool recursive) OVERRIDE; 44 bool recursive) OVERRIDE;
45 virtual bool IsDirectoryEmpty( 45 virtual bool IsDirectoryEmpty(
46 FileSystemOperationContext* context, 46 FileSystemOperationContext* context,
47 const FileSystemURL& url) OVERRIDE; 47 const FileSystemURL& url) OVERRIDE;
48 48
49 private: 49 private:
50 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil); 50 DISALLOW_COPY_AND_ASSIGN(DraggedFileUtil);
51 }; 51 };
52 52
53 } // namespace fileapi 53 } // namespace fileapi
54 54
55 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_ 55 #endif // WEBKIT_FILEAPI_ISOLATED_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/isolated_context.h ('k') | webkit/fileapi/local_file_stream_writer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698