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

Unified Diff: webkit/fileapi/file_system_operation_context.h

Issue 14265022: [Quota][FileAPI] Add quota policy to FileSystemOperationContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drop unused #include Created 7 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: webkit/fileapi/file_system_operation_context.h
diff --git a/webkit/fileapi/file_system_operation_context.h b/webkit/fileapi/file_system_operation_context.h
index ebe22abfc5782d273908898e9b394f3a49c79e32..29a682d460804ca004e4b50d0f0e7ab2d1163787 100644
--- a/webkit/fileapi/file_system_operation_context.h
+++ b/webkit/fileapi/file_system_operation_context.h
@@ -7,6 +7,7 @@
#include "base/supports_user_data.h"
#include "webkit/fileapi/task_runner_bound_observer_list.h"
+#include "webkit/quota/quota_types.h"
#include "webkit/storage/webkit_storage_export.h"
namespace base {
@@ -42,10 +43,17 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemOperationContext
void set_allowed_bytes_growth(const int64& allowed_bytes_growth) {
allowed_bytes_growth_ = allowed_bytes_growth;
}
+ void set_quota_limit_type(quota::QuotaLimitType limit_type) {
+ quota_limit_type_ = limit_type;
+ }
// Returns the current remaining quota.
int64 allowed_bytes_growth() const { return allowed_bytes_growth_; }
+ quota::QuotaLimitType quota_limit_type() const {
+ return quota_limit_type_;
+ }
+
// Returns TaskRunner which the operation is performed on.
base::SequencedTaskRunner* task_runner() const {
return task_runner_.get();
@@ -102,6 +110,7 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemOperationContext
scoped_refptr<base::SequencedTaskRunner> task_runner_;
int64 allowed_bytes_growth_;
+ quota::QuotaLimitType quota_limit_type_;
AccessObserverList access_observers_;
ChangeObserverList change_observers_;

Powered by Google App Engine
This is Rietveld 408576698