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

Side by Side Diff: webkit/browser/fileapi/file_system_quota_util.h

Issue 101393006: FileAPI: Rename *OnFileThread to *OnFileTaskRunner (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 // An abstract interface that provides common quota-related utility functions 31 // An abstract interface that provides common quota-related utility functions
32 // for file_system_quota_client. 32 // for file_system_quota_client.
33 // All the methods of this class are synchronous and need to be called on 33 // All the methods of this class are synchronous and need to be called on
34 // the thread that the method name implies. 34 // the thread that the method name implies.
35 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemQuotaUtil { 35 class WEBKIT_STORAGE_BROWSER_EXPORT FileSystemQuotaUtil {
36 public: 36 public:
37 virtual ~FileSystemQuotaUtil() {} 37 virtual ~FileSystemQuotaUtil() {}
38 38
39 // Deletes the data on the origin and reports the amount of deleted data 39 // Deletes the data on the origin and reports the amount of deleted data
40 // to the quota manager via |proxy|. 40 // to the quota manager via |proxy|.
41 virtual base::PlatformFileError DeleteOriginDataOnFileThread( 41 virtual base::PlatformFileError DeleteOriginDataOnFileTaskRunner(
42 FileSystemContext* context, 42 FileSystemContext* context,
43 quota::QuotaManagerProxy* proxy, 43 quota::QuotaManagerProxy* proxy,
44 const GURL& origin_url, 44 const GURL& origin_url,
45 FileSystemType type) = 0; 45 FileSystemType type) = 0;
46 46
47 virtual void GetOriginsForTypeOnFileThread(fileapi::FileSystemType type, 47 virtual void GetOriginsForTypeOnFileTaskRunner(
48 std::set<GURL>* origins) = 0; 48 fileapi::FileSystemType type,
49 std::set<GURL>* origins) = 0;
49 50
50 virtual void GetOriginsForHostOnFileThread(fileapi::FileSystemType type, 51 virtual void GetOriginsForHostOnFileTaskRunner(
51 const std::string& host, 52 fileapi::FileSystemType type,
52 std::set<GURL>* origins) = 0; 53 const std::string& host,
54 std::set<GURL>* origins) = 0;
53 55
54 // Returns the amount of data used for the origin for usage tracking. 56 // Returns the amount of data used for the origin for usage tracking.
55 virtual int64 GetOriginUsageOnFileThread( 57 virtual int64 GetOriginUsageOnFileTaskRunner(
56 fileapi::FileSystemContext* file_system_context, 58 fileapi::FileSystemContext* file_system_context,
57 const GURL& origin_url, 59 const GURL& origin_url,
58 fileapi::FileSystemType type) = 0; 60 fileapi::FileSystemType type) = 0;
59 61
60 // Creates new reservation object for the origin and the type. 62 // Creates new reservation object for the origin and the type.
61 virtual scoped_refptr<QuotaReservation> 63 virtual scoped_refptr<QuotaReservation>
62 CreateQuotaReservationOnFileTaskRunner( 64 CreateQuotaReservationOnFileTaskRunner(
63 const GURL& origin_url, 65 const GURL& origin_url,
64 FileSystemType type) = 0; 66 FileSystemType type) = 0;
65 67
(...skipping 16 matching lines...) Expand all
82 FileSystemType type) const = 0; 84 FileSystemType type) const = 0;
83 virtual const ChangeObserverList* GetChangeObservers( 85 virtual const ChangeObserverList* GetChangeObservers(
84 FileSystemType type) const = 0; 86 FileSystemType type) const = 0;
85 virtual const AccessObserverList* GetAccessObservers( 87 virtual const AccessObserverList* GetAccessObservers(
86 FileSystemType type) const = 0; 88 FileSystemType type) const = 0;
87 }; 89 };
88 90
89 } // namespace fileapi 91 } // namespace fileapi
90 92
91 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ 93 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/browser/fileapi/file_system_quota_client.cc ('k') | webkit/browser/fileapi/plugin_private_file_system_backend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698