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

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

Issue 7608011: Simplify directory path accounting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rolled in CR feedback. Created 9 years, 4 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
« no previous file with comments | « webkit/fileapi/file_system_quota_util.h ('k') | webkit/fileapi/file_system_test_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_TEST_HELPER_H_ 5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ 6 #define WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 void TearDown(); 54 void TearDown();
55 55
56 FilePath GetOriginRootPath() const; 56 FilePath GetOriginRootPath() const;
57 FilePath GetLocalPath(const FilePath& path); 57 FilePath GetLocalPath(const FilePath& path);
58 FilePath GetLocalPathFromASCII(const std::string& path); 58 FilePath GetLocalPathFromASCII(const std::string& path);
59 GURL GetURLForPath(const FilePath& path) const; 59 GURL GetURLForPath(const FilePath& path) const;
60 FilePath GetUsageCachePath() const; 60 FilePath GetUsageCachePath() const;
61 61
62 int64 GetCachedOriginUsage() const; 62 int64 GetCachedOriginUsage() const;
63 bool RevokeUsageCache() const; 63 bool RevokeUsageCache() const;
64
65 // This doesn't work with OFSFU.
64 int64 ComputeCurrentOriginUsage() const; 66 int64 ComputeCurrentOriginUsage() const;
65 67
66 FileSystemOperation* NewOperation( 68 FileSystemOperation* NewOperation(
67 FileSystemCallbackDispatcher* callback_dispatcher); 69 FileSystemCallbackDispatcher* callback_dispatcher);
68 FileSystemOperationContext* NewOperationContext(); 70 FileSystemOperationContext* NewOperationContext();
69 71
70 FileSystemContext* file_system_context() const { 72 FileSystemContext* file_system_context() const {
71 return file_system_context_.get(); 73 return file_system_context_.get();
72 } 74 }
73 75
(...skipping 10 matching lines...) Expand all
84 scoped_refptr<FileSystemContext> file_system_context_; 86 scoped_refptr<FileSystemContext> file_system_context_;
85 const GURL origin_; 87 const GURL origin_;
86 const FileSystemType type_; 88 const FileSystemType type_;
87 FileSystemFileUtil* file_util_; 89 FileSystemFileUtil* file_util_;
88 int64 initial_usage_size_; 90 int64 initial_usage_size_;
89 }; 91 };
90 92
91 } // namespace fileapi 93 } // namespace fileapi
92 94
93 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_ 95 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_TEST_HELPER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_quota_util.h ('k') | webkit/fileapi/file_system_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698