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

Side by Side Diff: storage/browser/fileapi/sandbox_quota_observer.cc

Issue 539143002: Migrate webkit/browser/ to storage/browser/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android build Created 6 years, 3 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 unified diff | Download patch
OLDNEW
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 #include "webkit/browser/fileapi/sandbox_quota_observer.h" 5 #include "storage/browser/fileapi/sandbox_quota_observer.h"
6 6
7 #include "base/sequenced_task_runner.h" 7 #include "base/sequenced_task_runner.h"
8 #include "webkit/browser/fileapi/file_system_url.h" 8 #include "storage/browser/fileapi/file_system_url.h"
9 #include "webkit/browser/fileapi/file_system_usage_cache.h" 9 #include "storage/browser/fileapi/file_system_usage_cache.h"
10 #include "webkit/browser/fileapi/sandbox_file_system_backend_delegate.h" 10 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h"
11 #include "webkit/browser/fileapi/timed_task_helper.h" 11 #include "storage/browser/fileapi/timed_task_helper.h"
12 #include "webkit/browser/quota/quota_client.h" 12 #include "storage/browser/quota/quota_client.h"
13 #include "webkit/browser/quota/quota_manager_proxy.h" 13 #include "storage/browser/quota/quota_manager_proxy.h"
14 #include "webkit/common/fileapi/file_system_util.h" 14 #include "storage/common/fileapi/file_system_util.h"
15 15
16 namespace storage { 16 namespace storage {
17 17
18 SandboxQuotaObserver::SandboxQuotaObserver( 18 SandboxQuotaObserver::SandboxQuotaObserver(
19 storage::QuotaManagerProxy* quota_manager_proxy, 19 storage::QuotaManagerProxy* quota_manager_proxy,
20 base::SequencedTaskRunner* update_notify_runner, 20 base::SequencedTaskRunner* update_notify_runner,
21 ObfuscatedFileUtil* sandbox_file_util, 21 ObfuscatedFileUtil* sandbox_file_util,
22 FileSystemUsageCache* file_system_usage_cache) 22 FileSystemUsageCache* file_system_usage_cache)
23 : quota_manager_proxy_(quota_manager_proxy), 23 : quota_manager_proxy_(quota_manager_proxy),
24 update_notify_runner_(update_notify_runner), 24 update_notify_runner_(update_notify_runner),
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 131
132 void SandboxQuotaObserver::UpdateUsageCacheFile( 132 void SandboxQuotaObserver::UpdateUsageCacheFile(
133 const base::FilePath& usage_file_path, 133 const base::FilePath& usage_file_path,
134 int64 delta) { 134 int64 delta) {
135 DCHECK(!usage_file_path.empty()); 135 DCHECK(!usage_file_path.empty());
136 if (!usage_file_path.empty() && delta != 0) 136 if (!usage_file_path.empty() && delta != 0)
137 file_system_usage_cache_->AtomicUpdateUsageByDelta(usage_file_path, delta); 137 file_system_usage_cache_->AtomicUpdateUsageByDelta(usage_file_path, delta);
138 } 138 }
139 139
140 } // namespace storage 140 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/sandbox_quota_observer.h ('k') | storage/browser/fileapi/task_runner_bound_observer_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698