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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 } | 97 } |
98 | 98 |
99 FileSystemOperationContext* file_system_operation_context() { | 99 FileSystemOperationContext* file_system_operation_context() { |
100 return &file_system_operation_context_; | 100 return &file_system_operation_context_; |
101 } | 101 } |
102 | 102 |
103 friend class FileSystemOperationTest; | 103 friend class FileSystemOperationTest; |
104 friend class FileSystemOperationWriteTest; | 104 friend class FileSystemOperationWriteTest; |
105 friend class FileWriterDelegateTest; | 105 friend class FileWriterDelegateTest; |
106 friend class FileSystemTestOriginHelper; | 106 friend class FileSystemTestOriginHelper; |
| 107 friend class FileSystemQuotaTest; |
107 | 108 |
108 bool GetUsageAndQuotaThenCallback( | 109 bool GetUsageAndQuotaThenCallback( |
109 const GURL& origin_url, | 110 const GURL& origin_url, |
110 quota::QuotaManager::GetUsageAndQuotaCallback* callback); | 111 quota::QuotaManager::GetUsageAndQuotaCallback* callback); |
111 | 112 |
112 void DelayedCopyForQuota(quota::QuotaStatusCode status, | 113 void DelayedCopyForQuota(quota::QuotaStatusCode status, |
113 int64 usage, int64 quota); | 114 int64 usage, int64 quota); |
114 void DelayedMoveForQuota(quota::QuotaStatusCode status, | 115 void DelayedMoveForQuota(quota::QuotaStatusCode status, |
115 int64 usage, int64 quota); | 116 int64 usage, int64 quota); |
116 void DelayedWriteForQuota(quota::QuotaStatusCode status, | 117 void DelayedWriteForQuota(quota::QuotaStatusCode status, |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 | 245 |
245 // Length to be truncated. | 246 // Length to be truncated. |
246 int64 length_; | 247 int64 length_; |
247 | 248 |
248 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); | 249 DISALLOW_COPY_AND_ASSIGN(FileSystemOperation); |
249 }; | 250 }; |
250 | 251 |
251 } // namespace fileapi | 252 } // namespace fileapi |
252 | 253 |
253 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ | 254 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_OPERATION_H_ |
OLD | NEW |