| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_QUOTA_FILE_UTIL_H_ | 5 #ifndef WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_ |
| 6 #define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_ | 6 #define WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_ |
| 7 | 7 |
| 8 #include "webkit/fileapi/file_system_file_util.h" | 8 #include "webkit/fileapi/file_system_file_util.h" |
| 9 #include "webkit/fileapi/file_system_operation_context.h" | 9 #include "webkit/fileapi/file_system_operation_context.h" |
| 10 #pragma once | 10 #pragma once |
| 11 | 11 |
| 12 namespace fileapi { | 12 namespace fileapi { |
| 13 | 13 |
| 14 class QuotaFileUtil : public FileSystemFileUtil { | 14 class QuotaFileUtil : public FileSystemFileUtil { |
| 15 public: | 15 public: |
| 16 static QuotaFileUtil* GetInstance(); | 16 static QuotaFileUtil* GetInstance(); |
| 17 ~QuotaFileUtil() {} | 17 virtual ~QuotaFileUtil() {} |
| 18 | 18 |
| 19 static const int64 kNoLimit; | 19 static const int64 kNoLimit; |
| 20 | 20 |
| 21 virtual base::PlatformFileError CopyOrMoveFile( | 21 virtual base::PlatformFileError CopyOrMoveFile( |
| 22 FileSystemOperationContext* fs_context, | 22 FileSystemOperationContext* fs_context, |
| 23 const FilePath& src_file_path, | 23 const FilePath& src_file_path, |
| 24 const FilePath& dest_file_path, | 24 const FilePath& dest_file_path, |
| 25 bool copy); | 25 bool copy); |
| 26 | 26 |
| 27 virtual base::PlatformFileError DeleteFile( | 27 virtual base::PlatformFileError DeleteFile( |
| (...skipping 10 matching lines...) Expand all Loading... |
| 38 friend struct DefaultSingletonTraits<QuotaFileUtil>; | 38 friend struct DefaultSingletonTraits<QuotaFileUtil>; |
| 39 DISALLOW_COPY_AND_ASSIGN(QuotaFileUtil); | 39 DISALLOW_COPY_AND_ASSIGN(QuotaFileUtil); |
| 40 | 40 |
| 41 protected: | 41 protected: |
| 42 QuotaFileUtil() {} | 42 QuotaFileUtil() {} |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace fileapi | 45 } // namespace fileapi |
| 46 | 46 |
| 47 #endif // WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_ | 47 #endif // WEBKIT_FILEAPI_QUOTA_FILE_UTIL_H_ |
| OLD | NEW |