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/location.h" | 10 #include "base/location.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 const GURL& origin) { | 137 const GURL& origin) { |
138 DCHECK(file_task_runner()->RunsTasksOnCurrentThread()); | 138 DCHECK(file_task_runner()->RunsTasksOnCurrentThread()); |
139 filesystem_context_->DeleteDataForOriginOnFileTaskRunner(origin); | 139 filesystem_context_->DeleteDataForOriginOnFileTaskRunner(origin); |
140 } | 140 } |
141 | 141 |
142 } // namespace | 142 } // namespace |
143 | 143 |
144 BrowsingDataFileSystemHelper::FileSystemInfo::FileSystemInfo( | 144 BrowsingDataFileSystemHelper::FileSystemInfo::FileSystemInfo( |
145 const GURL& origin) : origin(origin) {} | 145 const GURL& origin) : origin(origin) {} |
146 | 146 |
| 147 BrowsingDataFileSystemHelper::FileSystemInfo::FileSystemInfo( |
| 148 const FileSystemInfo& other) = default; |
| 149 |
147 BrowsingDataFileSystemHelper::FileSystemInfo::~FileSystemInfo() {} | 150 BrowsingDataFileSystemHelper::FileSystemInfo::~FileSystemInfo() {} |
148 | 151 |
149 // static | 152 // static |
150 BrowsingDataFileSystemHelper* BrowsingDataFileSystemHelper::Create( | 153 BrowsingDataFileSystemHelper* BrowsingDataFileSystemHelper::Create( |
151 storage::FileSystemContext* filesystem_context) { | 154 storage::FileSystemContext* filesystem_context) { |
152 return new BrowsingDataFileSystemHelperImpl(filesystem_context); | 155 return new BrowsingDataFileSystemHelperImpl(filesystem_context); |
153 } | 156 } |
154 | 157 |
155 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper( | 158 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper( |
156 Profile* profile) { | 159 Profile* profile) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 203 } |
201 | 204 |
202 void CannedBrowsingDataFileSystemHelper::StartFetching( | 205 void CannedBrowsingDataFileSystemHelper::StartFetching( |
203 const FetchCallback& callback) { | 206 const FetchCallback& callback) { |
204 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 207 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
205 DCHECK(!callback.is_null()); | 208 DCHECK(!callback.is_null()); |
206 | 209 |
207 BrowserThread::PostTask( | 210 BrowserThread::PostTask( |
208 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_)); | 211 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_)); |
209 } | 212 } |
OLD | NEW |