| 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_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "webkit/fileapi/fileapi_export.h" | |
| 9 #include "webkit/fileapi/isolated_file_util.h" | 8 #include "webkit/fileapi/isolated_file_util.h" |
| 9 #include "webkit/storage/webkit_storage_export.h" |
| 10 | 10 |
| 11 namespace fileapi { | 11 namespace fileapi { |
| 12 | 12 |
| 13 // This class handles native file system operations with media type filtering | 13 // This class handles native file system operations with media type filtering |
| 14 // which is passed to each method via FileSystemOperationContext as | 14 // which is passed to each method via FileSystemOperationContext as |
| 15 // MediaPathFilter. | 15 // MediaPathFilter. |
| 16 class FILEAPI_EXPORT_PRIVATE NativeMediaFileUtil : public IsolatedFileUtil { | 16 class WEBKIT_STORAGE_EXPORT_PRIVATE NativeMediaFileUtil |
| 17 : public IsolatedFileUtil { |
| 17 public: | 18 public: |
| 18 NativeMediaFileUtil(); | 19 NativeMediaFileUtil(); |
| 19 | 20 |
| 20 virtual PlatformFileError CreateOrOpen( | 21 virtual PlatformFileError CreateOrOpen( |
| 21 FileSystemOperationContext* context, | 22 FileSystemOperationContext* context, |
| 22 const FileSystemURL& url, | 23 const FileSystemURL& url, |
| 23 int file_flags, | 24 int file_flags, |
| 24 PlatformFile* file_handle, | 25 PlatformFile* file_handle, |
| 25 bool* created) OVERRIDE; | 26 bool* created) OVERRIDE; |
| 26 virtual PlatformFileError EnsureFileExists( | 27 virtual PlatformFileError EnsureFileExists( |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 base::PlatformFileInfo* file_info, | 61 base::PlatformFileInfo* file_info, |
| 61 FilePath* platform_path) OVERRIDE; | 62 FilePath* platform_path) OVERRIDE; |
| 62 | 63 |
| 63 private: | 64 private: |
| 64 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); | 65 DISALLOW_COPY_AND_ASSIGN(NativeMediaFileUtil); |
| 65 }; | 66 }; |
| 66 | 67 |
| 67 } // namespace fileapi | 68 } // namespace fileapi |
| 68 | 69 |
| 69 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ | 70 #endif // WEBKIT_FILEAPI_MEDIA_NATIVE_MEDIA_FILE_UTIL_H_ |
| OLD | NEW |