| 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_FILE_SYSTEM_OPERATION_H_ | 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/file_path.h" | 10 #include "base/file_path.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 private: | 95 private: |
| 96 FileSystemContext* file_system_context() const { | 96 FileSystemContext* file_system_context() const { |
| 97 return file_system_operation_context_.file_system_context(); | 97 return file_system_operation_context_.file_system_context(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 FileSystemOperationContext* file_system_operation_context() { | 100 FileSystemOperationContext* file_system_operation_context() { |
| 101 return &file_system_operation_context_; | 101 return &file_system_operation_context_; |
| 102 } | 102 } |
| 103 friend class FileSystemOperationTest; | 103 friend class FileSystemOperationTest; |
| 104 friend class FileSystemOperationWriteTest; | 104 friend class FileSystemOperationWriteTest; |
| 105 friend class FileSystemQuotaTest; |
| 105 | 106 |
| 106 bool GetUsageAndQuotaThenCallback( | 107 bool GetUsageAndQuotaThenCallback( |
| 107 const GURL& origin_url, | 108 const GURL& origin_url, |
| 108 quota::QuotaManager::GetUsageAndQuotaCallback* callback); | 109 quota::QuotaManager::GetUsageAndQuotaCallback* callback); |
| 109 | 110 |
| 110 void DelayedCopyForQuota(quota::QuotaStatusCode status, | 111 void DelayedCopyForQuota(quota::QuotaStatusCode status, |
| 111 int64 usage, int64 quota); | 112 int64 usage, int64 quota); |
| 112 void DelayedMoveForQuota(quota::QuotaStatusCode status, | 113 void DelayedMoveForQuota(quota::QuotaStatusCode status, |
| 113 int64 usage, int64 quota); | 114 int64 usage, int64 quota); |
| 114 void DelayedWriteForQuota(quota::QuotaStatusCode status, | 115 void DelayedWriteForQuota(quota::QuotaStatusCode status, |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 | 241 |
| 241 // Length to be truncated. | 242 // Length to be truncated. |
| 242 int64 length_; | 243 int64 length_; |
| 243 | 244 |
| 244 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 245 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
| 245 }; | 246 }; |
| 246 | 247 |
| 247 } // namespace fileapi | 248 } // namespace fileapi |
| 248 | 249 |
| 249 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 250 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
| OLD | NEW |