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

Side by Side Diff: storage/browser/fileapi/file_system_quota_client.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/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> 8 #include <set>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/location.h" 13 #include "base/location.h"
14 #include "base/logging.h" 14 #include "base/logging.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/sequenced_task_runner.h" 16 #include "base/sequenced_task_runner.h"
17 #include "base/single_thread_task_runner.h" 17 #include "base/single_thread_task_runner.h"
18 #include "base/task_runner_util.h" 18 #include "base/task_runner_util.h"
19 #include "net/base/net_util.h" 19 #include "net/base/net_util.h"
20 #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"
23 #include "storage/browser/fileapi/sandbox_file_system_backend.h"
24 #include "storage/common/fileapi/file_system_util.h"
20 #include "url/gurl.h" 25 #include "url/gurl.h"
21 #include "webkit/browser/fileapi/file_system_context.h"
22 #include "webkit/browser/fileapi/file_system_quota_util.h"
23 #include "webkit/browser/fileapi/file_system_usage_cache.h"
24 #include "webkit/browser/fileapi/sandbox_file_system_backend.h"
25 #include "webkit/common/fileapi/file_system_util.h"
26 26
27 using storage::StorageType; 27 using storage::StorageType;
28 28
29 namespace storage { 29 namespace storage {
30 30
31 namespace { 31 namespace {
32 32
33 void GetOriginsForTypeOnFileTaskRunner( 33 void GetOriginsForTypeOnFileTaskRunner(
34 FileSystemContext* context, 34 FileSystemContext* context,
35 StorageType storage_type, 35 StorageType storage_type,
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type); 201 FileSystemType type = QuotaStorageTypeToFileSystemType(storage_type);
202 DCHECK(type != kFileSystemTypeUnknown); 202 DCHECK(type != kFileSystemTypeUnknown);
203 return file_system_context_->IsSandboxFileSystem(type); 203 return file_system_context_->IsSandboxFileSystem(type);
204 } 204 }
205 205
206 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const { 206 base::SequencedTaskRunner* FileSystemQuotaClient::file_task_runner() const {
207 return file_system_context_->default_file_task_runner(); 207 return file_system_context_->default_file_task_runner();
208 } 208 }
209 209
210 } // namespace storage 210 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/file_system_quota_client.h ('k') | storage/browser/fileapi/file_system_quota_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698