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

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

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 <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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698