| 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 WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 5 #ifndef WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 6 #define WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.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" |
| 11 #include "webkit/browser/fileapi/file_system_file_util.h" | 11 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 12 #include "webkit/browser/webkit_storage_browser_export.h" | 12 #include "webkit/browser/storage_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class Time; | 15 class Time; |
| 16 } | 16 } |
| 17 | 17 |
| 18 class GURL; | 18 class GURL; |
| 19 | 19 |
| 20 namespace storage { | 20 namespace storage { |
| 21 | 21 |
| 22 class FileSystemOperationContext; | 22 class FileSystemOperationContext; |
| 23 class FileSystemURL; | 23 class FileSystemURL; |
| 24 | 24 |
| 25 // An instance of this class is created and owned by *FileSystemBackend. | 25 // An instance of this class is created and owned by *FileSystemBackend. |
| 26 class WEBKIT_STORAGE_BROWSER_EXPORT LocalFileUtil | 26 class STORAGE_EXPORT LocalFileUtil |
| 27 : public FileSystemFileUtil { | 27 : public FileSystemFileUtil { |
| 28 public: | 28 public: |
| 29 LocalFileUtil(); | 29 LocalFileUtil(); |
| 30 virtual ~LocalFileUtil(); | 30 virtual ~LocalFileUtil(); |
| 31 | 31 |
| 32 virtual base::File CreateOrOpen( | 32 virtual base::File CreateOrOpen( |
| 33 FileSystemOperationContext* context, | 33 FileSystemOperationContext* context, |
| 34 const FileSystemURL& url, | 34 const FileSystemURL& url, |
| 35 int file_flags) OVERRIDE; | 35 int file_flags) OVERRIDE; |
| 36 virtual base::File::Error EnsureFileExists( | 36 virtual base::File::Error EnsureFileExists( |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 base::File::Info* file_info, | 85 base::File::Info* file_info, |
| 86 base::FilePath* platform_path) OVERRIDE; | 86 base::FilePath* platform_path) OVERRIDE; |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 89 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace storage | 92 } // namespace storage |
| 93 | 93 |
| 94 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 94 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| OLD | NEW |