OLD | NEW |
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 "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 5 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/sequenced_task_runner.h" | 12 #include "base/sequenced_task_runner.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
16 #include "content/public/browser/browser_thread.h" | 16 #include "content/public/browser/browser_thread.h" |
| 17 #include "storage/browser/fileapi/file_system_context.h" |
| 18 #include "storage/browser/fileapi/file_system_quota_util.h" |
17 #include "storage/common/fileapi/file_system_types.h" | 19 #include "storage/common/fileapi/file_system_types.h" |
18 #include "webkit/browser/fileapi/file_system_context.h" | |
19 #include "webkit/browser/fileapi/file_system_quota_util.h" | |
20 | 20 |
21 using content::BrowserThread; | 21 using content::BrowserThread; |
22 | 22 |
23 namespace storage { | 23 namespace storage { |
24 class FileSystemContext; | 24 class FileSystemContext; |
25 } | 25 } |
26 | 26 |
27 namespace { | 27 namespace { |
28 | 28 |
29 // An implementation of the BrowsingDataFileSystemHelper interface that pulls | 29 // An implementation of the BrowsingDataFileSystemHelper interface that pulls |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 } | 255 } |
256 | 256 |
257 void CannedBrowsingDataFileSystemHelper::StartFetching( | 257 void CannedBrowsingDataFileSystemHelper::StartFetching( |
258 const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) { | 258 const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) { |
259 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 259 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
260 DCHECK(!callback.is_null()); | 260 DCHECK(!callback.is_null()); |
261 | 261 |
262 BrowserThread::PostTask( | 262 BrowserThread::PostTask( |
263 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_)); | 263 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_)); |
264 } | 264 } |
OLD | NEW |