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

Unified Diff: webkit/fileapi/sandboxed_file_system_context.cc

Issue 6426001: Add 1st cut of FileSystemUsageTracker that tracks the usage changes in FileSystem API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: build fix for win Created 9 years, 10 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/sandboxed_file_system_context.h ('k') | webkit/fileapi/webkit_fileapi.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/sandboxed_file_system_context.cc
diff --git a/webkit/fileapi/sandboxed_file_system_context.cc b/webkit/fileapi/sandboxed_file_system_context.cc
index 16232d5d35cdf70f0c313f6237c50326f6a7874a..1fd458d302f520efd0797b40e4717bee55187b4b 100644
--- a/webkit/fileapi/sandboxed_file_system_context.cc
+++ b/webkit/fileapi/sandboxed_file_system_context.cc
@@ -8,6 +8,7 @@
#include "base/message_loop_proxy.h"
#include "webkit/fileapi/file_system_path_manager.h"
#include "webkit/fileapi/file_system_quota_manager.h"
+#include "webkit/fileapi/file_system_usage_tracker.h"
namespace fileapi {
@@ -23,18 +24,14 @@ SandboxedFileSystemContext::SandboxedFileSystemContext(
path_manager_(new FileSystemPathManager(
file_message_loop, profile_path, is_incognito, allow_file_access)),
quota_manager_(new FileSystemQuotaManager(
- allow_file_access, unlimited_quota)) {
+ allow_file_access, unlimited_quota)),
+ usage_tracker_(new FileSystemUsageTracker(
+ file_message_loop, profile_path, is_incognito)) {
}
SandboxedFileSystemContext::~SandboxedFileSystemContext() {
}
-void SandboxedFileSystemContext::Shutdown() {
- DCHECK(io_message_loop_->BelongsToCurrentThread());
- path_manager_.reset();
- quota_manager_.reset();
-}
-
void SandboxedFileSystemContext::DeleteDataForOriginOnFileThread(
const GURL& origin_url) {
DCHECK(path_manager_.get());
« no previous file with comments | « webkit/fileapi/sandboxed_file_system_context.h ('k') | webkit/fileapi/webkit_fileapi.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698