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

Side by Side Diff: webkit/browser/fileapi/file_system_file_util.h

Issue 16701004: Fix webkit_storage exports definitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
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_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
7 7
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
11 #include "webkit/browser/webkit_storage_browser_export.h"
11 #include "webkit/common/blob/scoped_file.h" 12 #include "webkit/common/blob/scoped_file.h"
12 #include "webkit/storage/webkit_storage_export.h"
13 13
14 namespace base { 14 namespace base {
15 class Time; 15 class Time;
16 } 16 }
17 17
18 namespace fileapi { 18 namespace fileapi {
19 19
20 class FileSystemOperationContext; 20 class FileSystemOperationContext;
21 class FileSystemURL; 21 class FileSystemURL;
22 22
23 // A file utility interface that provides basic file utility methods for 23 // A file utility interface that provides basic file utility methods for
24 // FileSystem API. 24 // FileSystem API.
25 // 25 //
26 // Layering structure of the FileSystemFileUtil was split out. 26 // Layering structure of the FileSystemFileUtil was split out.
27 // See http://crbug.com/128136 if you need it. 27 // See http://crbug.com/128136 if you need it.
28 class WEBKIT_STORAGE_EXPORT FileSystemFileUtil { 28 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemFileUtil {
29 public: 29 public:
30 // It will be implemented by each subclass such as FileSystemFileEnumerator. 30 // It will be implemented by each subclass such as FileSystemFileEnumerator.
31 class WEBKIT_STORAGE_EXPORT AbstractFileEnumerator { 31 class WEBKIT_STORAGE_BROWSER_EXPORT AbstractFileEnumerator {
32 public: 32 public:
33 virtual ~AbstractFileEnumerator() {} 33 virtual ~AbstractFileEnumerator() {}
34 34
35 // Returns an empty string if there are no more results. 35 // Returns an empty string if there are no more results.
36 virtual base::FilePath Next() = 0; 36 virtual base::FilePath Next() = 0;
37 37
38 // These methods return metadata for the file most recently returned by 38 // These methods return metadata for the file most recently returned by
39 // Next(). If Next() has never been called, or if Next() most recently 39 // Next(). If Next() has never been called, or if Next() most recently
40 // returned an empty string, then return the default values of 0, 40 // returned an empty string, then return the default values of 0,
41 // "null time", and false, respectively. 41 // "null time", and false, respectively.
42 virtual int64 Size() = 0; 42 virtual int64 Size() = 0;
43 virtual base::Time LastModifiedTime() = 0; 43 virtual base::Time LastModifiedTime() = 0;
44 virtual bool IsDirectory() = 0; 44 virtual bool IsDirectory() = 0;
45 }; 45 };
46 46
47 class WEBKIT_STORAGE_EXPORT EmptyFileEnumerator 47 class WEBKIT_STORAGE_BROWSER_EXPORT EmptyFileEnumerator
48 : public AbstractFileEnumerator { 48 : public AbstractFileEnumerator {
49 virtual base::FilePath Next() OVERRIDE; 49 virtual base::FilePath Next() OVERRIDE;
50 virtual int64 Size() OVERRIDE; 50 virtual int64 Size() OVERRIDE;
51 virtual base::Time LastModifiedTime() OVERRIDE; 51 virtual base::Time LastModifiedTime() OVERRIDE;
52 virtual bool IsDirectory() OVERRIDE; 52 virtual bool IsDirectory() OVERRIDE;
53 }; 53 };
54 54
55 virtual ~FileSystemFileUtil() {} 55 virtual ~FileSystemFileUtil() {}
56 56
57 // Creates or opens a file with the given flags. 57 // Creates or opens a file with the given flags.
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 protected: 180 protected:
181 FileSystemFileUtil() {} 181 FileSystemFileUtil() {}
182 182
183 private: 183 private:
184 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); 184 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil);
185 }; 185 };
186 186
187 } // namespace fileapi 187 } // namespace fileapi
188 188
189 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ 189 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_file_stream_reader.h ('k') | webkit/browser/fileapi/file_system_mount_point_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698