OLD | NEW |
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 STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ | 6 #define STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
7 | 7 |
8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // Next(). If Next() has never been called, or if Next() most recently | 42 // Next(). If Next() has never been called, or if Next() most recently |
43 // returned an empty string, then return the default values of 0, | 43 // returned an empty string, then return the default values of 0, |
44 // "null time", and false, respectively. | 44 // "null time", and false, respectively. |
45 virtual int64 Size() = 0; | 45 virtual int64 Size() = 0; |
46 virtual base::Time LastModifiedTime() = 0; | 46 virtual base::Time LastModifiedTime() = 0; |
47 virtual bool IsDirectory() = 0; | 47 virtual bool IsDirectory() = 0; |
48 }; | 48 }; |
49 | 49 |
50 class STORAGE_EXPORT EmptyFileEnumerator | 50 class STORAGE_EXPORT EmptyFileEnumerator |
51 : public AbstractFileEnumerator { | 51 : public AbstractFileEnumerator { |
52 virtual base::FilePath Next() OVERRIDE; | 52 virtual base::FilePath Next() override; |
53 virtual int64 Size() OVERRIDE; | 53 virtual int64 Size() override; |
54 virtual base::Time LastModifiedTime() OVERRIDE; | 54 virtual base::Time LastModifiedTime() override; |
55 virtual bool IsDirectory() OVERRIDE; | 55 virtual bool IsDirectory() override; |
56 }; | 56 }; |
57 | 57 |
58 virtual ~FileSystemFileUtil() {} | 58 virtual ~FileSystemFileUtil() {} |
59 | 59 |
60 // Creates or opens a file with the given flags. | 60 // Creates or opens a file with the given flags. |
61 // See header comments for AsyncFileUtil::CreateOrOpen() for more details. | 61 // See header comments for AsyncFileUtil::CreateOrOpen() for more details. |
62 // This is used only by Pepper/NaCl File API. | 62 // This is used only by Pepper/NaCl File API. |
63 virtual base::File CreateOrOpen( | 63 virtual base::File CreateOrOpen( |
64 FileSystemOperationContext* context, | 64 FileSystemOperationContext* context, |
65 const FileSystemURL& url, | 65 const FileSystemURL& url, |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 protected: | 177 protected: |
178 FileSystemFileUtil() {} | 178 FileSystemFileUtil() {} |
179 | 179 |
180 private: | 180 private: |
181 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); | 181 DISALLOW_COPY_AND_ASSIGN(FileSystemFileUtil); |
182 }; | 182 }; |
183 | 183 |
184 } // namespace storage | 184 } // namespace storage |
185 | 185 |
186 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ | 186 #endif // STORAGE_BROWSER_FILEAPI_FILE_SYSTEM_FILE_UTIL_H_ |
OLD | NEW |