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/string_util.h" | 11 #include "base/string_util.h" |
12 #include "base/utf_string_conversions.h" | 12 #include "base/utf_string_conversions.h" |
13 #include "chrome/browser/browsing_data/browsing_data_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_helper.h" |
14 #include "content/public/browser/browser_thread.h" | 14 #include "content/public/browser/browser_thread.h" |
| 15 #include "webkit/browser/fileapi/file_system_quota_util.h" |
15 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" | 16 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
16 #include "webkit/fileapi/file_system_context.h" | 17 #include "webkit/fileapi/file_system_context.h" |
17 #include "webkit/fileapi/file_system_quota_util.h" | |
18 #include "webkit/fileapi/file_system_types.h" | 18 #include "webkit/fileapi/file_system_types.h" |
19 | 19 |
20 using content::BrowserThread; | 20 using content::BrowserThread; |
21 | 21 |
22 namespace fileapi { | 22 namespace fileapi { |
23 class FileSystemContext; | 23 class FileSystemContext; |
24 } | 24 } |
25 | 25 |
26 namespace { | 26 namespace { |
27 | 27 |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 base::Bind(&CannedBrowsingDataFileSystemHelper::NotifyOnUIThread, this)); | 291 base::Bind(&CannedBrowsingDataFileSystemHelper::NotifyOnUIThread, this)); |
292 } | 292 } |
293 | 293 |
294 void CannedBrowsingDataFileSystemHelper::NotifyOnUIThread() { | 294 void CannedBrowsingDataFileSystemHelper::NotifyOnUIThread() { |
295 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 295 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
296 DCHECK(is_fetching_); | 296 DCHECK(is_fetching_); |
297 completion_callback_.Run(file_system_info_); | 297 completion_callback_.Run(file_system_info_); |
298 completion_callback_.Reset(); | 298 completion_callback_.Reset(); |
299 is_fetching_ = false; | 299 is_fetching_ = false; |
300 } | 300 } |
OLD | NEW |