Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: webkit/fileapi/file_system_operation.h

Issue 6905095: Integrated test with the actual QuotaManager and PathManager. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Rebased. (It causes signal 11.) Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/fileapi/file_system_quota_unittest.cc » ('j') | webkit/fileapi/file_system_quota_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698