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

Side by Side Diff: storage/browser/fileapi/file_system_quota_client.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/file_system_quota_client.h" 5 #include "storage/browser/fileapi/file_system_quota_client.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set>
9 8
10 #include "base/bind.h" 9 #include "base/bind.h"
11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 10 #include "base/files/file_util.h"
13 #include "base/location.h" 11 #include "base/location.h"
14 #include "base/logging.h" 12 #include "base/logging.h"
15 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
16 #include "base/sequenced_task_runner.h" 14 #include "base/sequenced_task_runner.h"
17 #include "base/single_thread_task_runner.h" 15 #include "base/single_thread_task_runner.h"
18 #include "base/task_runner_util.h" 16 #include "base/task_runner_util.h"
19 #include "net/base/net_util.h" 17 #include "net/base/net_util.h"
20 #include "storage/browser/fileapi/file_system_context.h" 18 #include "storage/browser/fileapi/file_system_context.h"
21 #include "storage/browser/fileapi/file_system_quota_util.h"
22 #include "storage/browser/fileapi/file_system_usage_cache.h" 19 #include "storage/browser/fileapi/file_system_usage_cache.h"
23 #include "storage/browser/fileapi/sandbox_file_system_backend.h" 20 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
24 #include "storage/common/fileapi/file_system_util.h" 21 #include "storage/common/fileapi/file_system_util.h"
25 #include "url/gurl.h" 22 #include "url/gurl.h"
26 23
27 using storage::StorageType; 24 using storage::StorageType;
28 25
29 namespace storage { 26 namespace storage {
30 27
31 namespace { 28 namespace {
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type); 198 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
202 DCHECK(type != kFileSystemTypeUnknown); 199 DCHECK(type != kFileSystemTypeUnknown);
203 return file_system_context_->IsSandboxFileSystem(type); 200 return file_system_context_->IsSandboxFileSystem(type);
204 } 201 }
205 202
206 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { 203 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const {
207 return file_system_context_->default_file_task_runner(); 204 return file_system_context_->default_file_task_runner();
208 } 205 }
209 206
210 } // namespace storage 207 } // namespace storage
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698