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

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: Re-add special storage policy 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
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_operation_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5154a730861c5b9cdf2d2b1abade6f4482a3061f 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 {
@@ -46,6 +47,10 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemOperationContext
// 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();
@@ -97,11 +102,15 @@ class WEBKIT_STORAGE_EXPORT_PRIVATE FileSystemOperationContext
void set_update_observers(const UpdateObserverList& list) {
update_observers_ = list;
}
+ void set_quota_limit_type(quota::QuotaLimitType limit_type) {
+ quota_limit_type_ = limit_type;
+ }
FileSystemContext* file_system_context_;
scoped_refptr<base::SequencedTaskRunner> task_runner_;
int64 allowed_bytes_growth_;
+ quota::QuotaLimitType quota_limit_type_;
AccessObserverList access_observers_;
ChangeObserverList change_observers_;
« no previous file with comments | « webkit/fileapi/file_system_context.cc ('k') | webkit/fileapi/file_system_operation_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698