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

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

Issue 15535006: Move browser-specific FileAPI code from webkit/fileapi to webkit/browser/fileapi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
6 #define WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
7
8 #include <set>
9 #include <string>
10
11 #include "base/basictypes.h"
12 #include "googleurl/src/gurl.h"
13 #include "webkit/fileapi/file_system_types.h"
14 #include "webkit/storage/webkit_storage_export.h"
15
16 namespace base {
17 class SequencedTaskRunner;
18 }
19
20 namespace quota {
21 class QuotaManagerProxy;
22 }
23
24 namespace fileapi {
25
26 class FileSystemContext;
27
28 // An abstract interface that provides common quota-related utility functions
29 // for file_system_quota_client.
30 // All the methods of this class are synchronous and need to be called on
31 // the thread that the method name implies.
32 class WEBKIT_STORAGE_EXPORT FileSystemQuotaUtil {
33 public:
34 virtual ~FileSystemQuotaUtil() {}
35
36 virtual void GetOriginsForTypeOnFileThread(fileapi::FileSystemType type,
37 std::set<GURL>* origins) = 0;
38
39 virtual void GetOriginsForHostOnFileThread(fileapi::FileSystemType type,
40 const std::string& host,
41 std::set<GURL>* origins) = 0;
42
43 // Returns the amount of data used for the origin for usage tracking.
44 virtual int64 GetOriginUsageOnFileThread(
45 fileapi::FileSystemContext* file_system_context,
46 const GURL& origin_url,
47 fileapi::FileSystemType type) = 0;
48
49 virtual void InvalidateUsageCache(const GURL& origin_url,
50 fileapi::FileSystemType type) = 0;
51 virtual void StickyInvalidateUsageCache(const GURL& origin,
52 fileapi::FileSystemType type) = 0;
53 };
54
55 } // namespace fileapi
56
57 #endif // WEBKIT_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/file_system_quota_client_unittest.cc ('k') | webkit/fileapi/file_writer_delegate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698