| 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_DEVICE_MEDIA_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "webkit/fileapi/fileapi_export.h" | |
| 11 #include "webkit/fileapi/file_system_file_util.h" | 10 #include "webkit/fileapi/file_system_file_util.h" |
| 11 #include "webkit/storage/webkit_storage_export.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class Time; | 14 class Time; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace fileapi { | 17 namespace fileapi { |
| 18 | 18 |
| 19 class FileSystemOperationContext; | 19 class FileSystemOperationContext; |
| 20 | 20 |
| 21 class FILEAPI_EXPORT_PRIVATE DeviceMediaFileUtil : public FileSystemFileUtil { | 21 class WEBKIT_STORAGE_EXPORT_PRIVATE DeviceMediaFileUtil |
| 22 : public FileSystemFileUtil { |
| 22 public: | 23 public: |
| 23 explicit DeviceMediaFileUtil(const FilePath& profile_path); | 24 explicit DeviceMediaFileUtil(const FilePath& profile_path); |
| 24 virtual ~DeviceMediaFileUtil() {} | 25 virtual ~DeviceMediaFileUtil() {} |
| 25 | 26 |
| 26 // FileSystemFileUtil overrides. | 27 // FileSystemFileUtil overrides. |
| 27 virtual base::PlatformFileError CreateOrOpen( | 28 virtual base::PlatformFileError CreateOrOpen( |
| 28 FileSystemOperationContext* context, | 29 FileSystemOperationContext* context, |
| 29 const FileSystemURL& url, | 30 const FileSystemURL& url, |
| 30 int file_flags, | 31 int file_flags, |
| 31 base::PlatformFile* file_handle, | 32 base::PlatformFile* file_handle, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 private: | 92 private: |
| 92 // Profile path | 93 // Profile path |
| 93 const FilePath profile_path_; | 94 const FilePath profile_path_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(DeviceMediaFileUtil); | 96 DISALLOW_COPY_AND_ASSIGN(DeviceMediaFileUtil); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 } // namespace fileapi | 99 } // namespace fileapi |
| 99 | 100 |
| 100 #endif // WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ | 101 #endif // WEBKIT_FILEAPI_MEDIA_DEVICE_MEDIA_FILE_UTIL_H_ |
| OLD | NEW |