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

Unified Diff: webkit/fileapi/sandbox_mount_point_provider.h

Issue 14265022: [Quota][FileAPI] Add quota policy to FileSystemOperationContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move to SandboxMountPointProvider 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/sandbox_mount_point_provider.h
diff --git a/webkit/fileapi/sandbox_mount_point_provider.h b/webkit/fileapi/sandbox_mount_point_provider.h
index 8456879f2379201c910c173d95cfda0a0cfb854f..425dfb7b081e17710c1153ab94114ba5e0e50179 100644
--- a/webkit/fileapi/sandbox_mount_point_provider.h
+++ b/webkit/fileapi/sandbox_mount_point_provider.h
@@ -19,6 +19,7 @@
#include "webkit/fileapi/file_system_options.h"
#include "webkit/fileapi/file_system_quota_util.h"
#include "webkit/fileapi/task_runner_bound_observer_list.h"
+#include "webkit/quota/special_storage_policy.h"
#include "webkit/storage/webkit_storage_export.h"
namespace base {
@@ -27,6 +28,7 @@ class SequencedTaskRunner;
namespace quota {
class QuotaManagerProxy;
+class SpecialStoragePolicy;
}
namespace sync_file_system {
@@ -75,7 +77,8 @@ class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider
quota::QuotaManagerProxy* quota_manager_proxy,
base::SequencedTaskRunner* file_task_runner,
const base::FilePath& profile_path,
- const FileSystemOptions& file_system_options);
+ const FileSystemOptions& file_system_options,
+ quota::SpecialStoragePolicy* special_storage_policy);
virtual ~SandboxMountPointProvider();
// FileSystemMountPointProvider overrides.
@@ -242,6 +245,8 @@ class WEBKIT_STORAGE_EXPORT SandboxMountPointProvider
// a command-line switch (--disable-file-system-usage-tracking).
bool enable_usage_tracking_;
+ scoped_refptr<quota::SpecialStoragePolicy> special_storage_policy_;
+
base::WeakPtrFactory<SandboxMountPointProvider> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(SandboxMountPointProvider);

Powered by Google App Engine
This is Rietveld 408576698