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 "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
11 #include "base/sequenced_task_runner.h" | 11 #include "base/sequenced_task_runner.h" |
12 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
15 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
16 #include "webkit/browser/fileapi/file_system_context.h" | 16 #include "webkit/browser/fileapi/file_system_context.h" |
17 #include "webkit/browser/fileapi/file_system_quota_util.h" | 17 #include "webkit/browser/fileapi/file_system_quota_util.h" |
18 #include "webkit/browser/fileapi/file_system_task_runners.h" | 18 #include "webkit/browser/fileapi/file_system_task_runners.h" |
19 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 19 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
20 #include "webkit/common/fileapi/file_system_types.h" | 20 #include "webkit/common/fileapi/file_system_types.h" |
21 | 21 |
22 using content::BrowserThread; | 22 using content::BrowserThread; |
23 | 23 |
24 namespace fileapi { | 24 namespace fileapi { |
25 class FileSystemContext; | 25 class FileSystemContext; |
26 } | 26 } |
27 | 27 |
28 namespace { | 28 namespace { |
29 | 29 |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 base::Bind(&CannedBrowsingDataFileSystemHelper::NotifyOnUIThread, this)); | 267 base::Bind(&CannedBrowsingDataFileSystemHelper::NotifyOnUIThread, this)); |
268 } | 268 } |
269 | 269 |
270 void CannedBrowsingDataFileSystemHelper::NotifyOnUIThread() { | 270 void CannedBrowsingDataFileSystemHelper::NotifyOnUIThread() { |
271 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 271 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
272 DCHECK(is_fetching_); | 272 DCHECK(is_fetching_); |
273 completion_callback_.Run(file_system_info_); | 273 completion_callback_.Run(file_system_info_); |
274 completion_callback_.Reset(); | 274 completion_callback_.Reset(); |
275 is_fetching_ = false; | 275 is_fetching_ = false; |
276 } | 276 } |
OLD | NEW |