| OLD | NEW |
| 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/platform_file.h" | 12 #include "base/platform_file.h" |
| 13 #include "url/gurl.h" | 13 #include "url/gurl.h" |
| 14 #include "webkit/browser/fileapi/task_runner_bound_observer_list.h" |
| 14 #include "webkit/browser/webkit_storage_browser_export.h" | 15 #include "webkit/browser/webkit_storage_browser_export.h" |
| 15 #include "webkit/common/fileapi/file_system_types.h" | 16 #include "webkit/common/fileapi/file_system_types.h" |
| 16 | 17 |
| 17 namespace base { | 18 namespace base { |
| 18 class SequencedTaskRunner; | 19 class SequencedTaskRunner; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace quota { | 22 namespace quota { |
| 22 class QuotaManagerProxy; | 23 class QuotaManagerProxy; |
| 23 } | 24 } |
| (...skipping 28 matching lines...) Expand all Loading... |
| 52 // Returns the amount of data used for the origin for usage tracking. | 53 // Returns the amount of data used for the origin for usage tracking. |
| 53 virtual int64 GetOriginUsageOnFileThread( | 54 virtual int64 GetOriginUsageOnFileThread( |
| 54 fileapi::FileSystemContext* file_system_context, | 55 fileapi::FileSystemContext* file_system_context, |
| 55 const GURL& origin_url, | 56 const GURL& origin_url, |
| 56 fileapi::FileSystemType type) = 0; | 57 fileapi::FileSystemType type) = 0; |
| 57 | 58 |
| 58 virtual void InvalidateUsageCache(const GURL& origin_url, | 59 virtual void InvalidateUsageCache(const GURL& origin_url, |
| 59 fileapi::FileSystemType type) = 0; | 60 fileapi::FileSystemType type) = 0; |
| 60 virtual void StickyInvalidateUsageCache(const GURL& origin, | 61 virtual void StickyInvalidateUsageCache(const GURL& origin, |
| 61 fileapi::FileSystemType type) = 0; | 62 fileapi::FileSystemType type) = 0; |
| 63 |
| 64 virtual void AddFileUpdateObserver( |
| 65 FileSystemType type, |
| 66 FileUpdateObserver* observer, |
| 67 base::SequencedTaskRunner* task_runner) = 0; |
| 68 virtual void AddFileChangeObserver( |
| 69 FileSystemType type, |
| 70 FileChangeObserver* observer, |
| 71 base::SequencedTaskRunner* task_runner) = 0; |
| 72 virtual void AddFileAccessObserver( |
| 73 FileSystemType type, |
| 74 FileAccessObserver* observer, |
| 75 base::SequencedTaskRunner* task_runner) = 0; |
| 76 virtual const UpdateObserverList* GetUpdateObservers( |
| 77 FileSystemType type) const = 0; |
| 78 virtual const ChangeObserverList* GetChangeObservers( |
| 79 FileSystemType type) const = 0; |
| 80 virtual const AccessObserverList* GetAccessObservers( |
| 81 FileSystemType type) const = 0; |
| 62 }; | 82 }; |
| 63 | 83 |
| 64 } // namespace fileapi | 84 } // namespace fileapi |
| 65 | 85 |
| 66 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ | 86 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_QUOTA_UTIL_H_ |
| OLD | NEW |