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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_file_system_helper.cc

Issue 136113019: Cleanup: Remove some unused code, or make them platform specific. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix build Created 6 years, 10 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 | Annotate | Revision Log
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 "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/sequenced_task_runner.h" 10 #include "base/sequenced_task_runner.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 181
182 BrowsingDataFileSystemHelper::FileSystemInfo::~FileSystemInfo() {} 182 BrowsingDataFileSystemHelper::FileSystemInfo::~FileSystemInfo() {}
183 183
184 // static 184 // static
185 BrowsingDataFileSystemHelper* BrowsingDataFileSystemHelper::Create( 185 BrowsingDataFileSystemHelper* BrowsingDataFileSystemHelper::Create(
186 fileapi::FileSystemContext* filesystem_context) { 186 fileapi::FileSystemContext* filesystem_context) {
187 return new BrowsingDataFileSystemHelperImpl(filesystem_context); 187 return new BrowsingDataFileSystemHelperImpl(filesystem_context);
188 } 188 }
189 189
190 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper( 190 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper(
191 Profile* profile) 191 Profile* profile) {
192 : is_fetching_(false) {
193 } 192 }
194 193
195 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper() 194 CannedBrowsingDataFileSystemHelper::CannedBrowsingDataFileSystemHelper() {
196 : is_fetching_(false) {
197 } 195 }
198 196
199 CannedBrowsingDataFileSystemHelper::~CannedBrowsingDataFileSystemHelper() {} 197 CannedBrowsingDataFileSystemHelper::~CannedBrowsingDataFileSystemHelper() {}
200 198
201 CannedBrowsingDataFileSystemHelper* 199 CannedBrowsingDataFileSystemHelper*
202 CannedBrowsingDataFileSystemHelper::Clone() { 200 CannedBrowsingDataFileSystemHelper::Clone() {
203 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 201 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
204 CannedBrowsingDataFileSystemHelper* clone = 202 CannedBrowsingDataFileSystemHelper* clone =
205 new CannedBrowsingDataFileSystemHelper(); 203 new CannedBrowsingDataFileSystemHelper();
206 // This list only mutates on the UI thread, so it's safe to work with it here 204 // This list only mutates on the UI thread, so it's safe to work with it here
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 } 250 }
253 251
254 void CannedBrowsingDataFileSystemHelper::StartFetching( 252 void CannedBrowsingDataFileSystemHelper::StartFetching(
255 const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) { 253 const base::Callback<void(const std::list<FileSystemInfo>&)>& callback) {
256 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); 254 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
257 DCHECK(!callback.is_null()); 255 DCHECK(!callback.is_null());
258 256
259 BrowserThread::PostTask( 257 BrowserThread::PostTask(
260 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_)); 258 BrowserThread::UI, FROM_HERE, base::Bind(callback, file_system_info_));
261 } 259 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698