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

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

Issue 1139323003: Discard duplicate includes of files from storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 "storage/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 "storage/browser/fileapi/file_system_url.h"
9 #include "storage/browser/fileapi/file_system_usage_cache.h" 8 #include "storage/browser/fileapi/file_system_usage_cache.h"
10 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h" 9 #include "storage/browser/fileapi/sandbox_file_system_backend_delegate.h"
11 #include "storage/browser/fileapi/timed_task_helper.h" 10 #include "storage/browser/fileapi/timed_task_helper.h"
12 #include "storage/browser/quota/quota_client.h" 11 #include "storage/browser/quota/quota_client.h"
13 #include "storage/browser/quota/quota_manager_proxy.h" 12 #include "storage/browser/quota/quota_manager_proxy.h"
14 #include "storage/common/fileapi/file_system_util.h" 13 #include "storage/common/fileapi/file_system_util.h"
15 14
16 namespace storage { 15 namespace storage {
17 16
18 SandboxQuotaObserver::SandboxQuotaObserver( 17 SandboxQuotaObserver::SandboxQuotaObserver(
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 130
132 void SandboxQuotaObserver::UpdateUsageCacheFile( 131 void SandboxQuotaObserver::UpdateUsageCacheFile(
133 const base::FilePath& usage_file_path, 132 const base::FilePath& usage_file_path,
134 int64 delta) { 133 int64 delta) {
135 DCHECK(!usage_file_path.empty()); 134 DCHECK(!usage_file_path.empty());
136 if (!usage_file_path.empty() && delta != 0) 135 if (!usage_file_path.empty() && delta != 0)
137 file_system_usage_cache_->AtomicUpdateUsageByDelta(usage_file_path, delta); 136 file_system_usage_cache_->AtomicUpdateUsageByDelta(usage_file_path, delta);
138 } 137 }
139 138
140 } // namespace storage 139 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698