| 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/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/fileapi/file_system_file_util.h" | 11 #include "webkit/browser/fileapi/file_system_file_util.h" |
| 12 #include "webkit/storage/webkit_storage_export.h" | 12 #include "webkit/browser/webkit_storage_browser_export.h" |
| 13 | 13 |
| 14 namespace base { | 14 namespace base { |
| 15 class FilePath; | 15 class FilePath; |
| 16 class Time; | 16 class Time; |
| 17 } | 17 } |
| 18 | 18 |
| 19 class GURL; | 19 class GURL; |
| 20 | 20 |
| 21 namespace fileapi { | 21 namespace fileapi { |
| 22 | 22 |
| 23 class FileSystemOperationContext; | 23 class FileSystemOperationContext; |
| 24 class FileSystemURL; | 24 class FileSystemURL; |
| 25 | 25 |
| 26 // An instance of this class is created and owned by *MountPointProvider. | 26 // An instance of this class is created and owned by *MountPointProvider. |
| 27 class WEBKIT_STORAGE_EXPORT_PRIVATE LocalFileUtil : public FileSystemFileUtil { | 27 class WEBKIT_STORAGE_BROWSER_EXPORT_PRIVATE LocalFileUtil |
| 28 : public FileSystemFileUtil { |
| 28 public: | 29 public: |
| 29 LocalFileUtil(); | 30 LocalFileUtil(); |
| 30 virtual ~LocalFileUtil(); | 31 virtual ~LocalFileUtil(); |
| 31 | 32 |
| 32 virtual base::PlatformFileError CreateOrOpen( | 33 virtual base::PlatformFileError CreateOrOpen( |
| 33 FileSystemOperationContext* context, | 34 FileSystemOperationContext* context, |
| 34 const FileSystemURL& url, | 35 const FileSystemURL& url, |
| 35 int file_flags, | 36 int file_flags, |
| 36 base::PlatformFile* file_handle, | 37 base::PlatformFile* file_handle, |
| 37 bool* created) OVERRIDE; | 38 bool* created) OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 base::PlatformFileInfo* file_info, | 90 base::PlatformFileInfo* file_info, |
| 90 base::FilePath* platform_path) OVERRIDE; | 91 base::FilePath* platform_path) OVERRIDE; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); | 94 DISALLOW_COPY_AND_ASSIGN(LocalFileUtil); |
| 94 }; | 95 }; |
| 95 | 96 |
| 96 } // namespace fileapi | 97 } // namespace fileapi |
| 97 | 98 |
| 98 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ | 99 #endif // WEBKIT_BROWSER_FILEAPI_LOCAL_FILE_UTIL_H_ |
| OLD | NEW |