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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_database_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_database_helper.h" 5 #include "chrome/browser/browsing_data/browsing_data_database_helper.h"
6 6
7 #include <tuple> 7 #include <tuple>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 19 matching lines...) Expand all
30 const std::string& database_name, 30 const std::string& database_name,
31 const std::string& description, 31 const std::string& description,
32 int64_t size, 32 int64_t size,
33 base::Time last_modified) 33 base::Time last_modified)
34 : identifier(identifier), 34 : identifier(identifier),
35 database_name(database_name), 35 database_name(database_name),
36 description(description), 36 description(description),
37 size(size), 37 size(size),
38 last_modified(last_modified) {} 38 last_modified(last_modified) {}
39 39
40 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo(
41 const DatabaseInfo& other) = default;
42
40 BrowsingDataDatabaseHelper::DatabaseInfo::~DatabaseInfo() {} 43 BrowsingDataDatabaseHelper::DatabaseInfo::~DatabaseInfo() {}
41 44
42 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) 45 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile)
43 : tracker_(BrowserContext::GetDefaultStoragePartition(profile) 46 : tracker_(BrowserContext::GetDefaultStoragePartition(profile)
44 ->GetDatabaseTracker()) {} 47 ->GetDatabaseTracker()) {}
45 48
46 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() { 49 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() {
47 } 50 }
48 51
49 void BrowsingDataDatabaseHelper::StartFetching(const FetchCallback& callback) { 52 void BrowsingDataDatabaseHelper::StartFetching(const FetchCallback& callback) {
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 ++it) { 191 ++it) {
189 if (it->origin == origin && it->name == name) { 192 if (it->origin == origin && it->name == name) {
190 pending_database_info_.erase(it); 193 pending_database_info_.erase(it);
191 break; 194 break;
192 } 195 }
193 } 196 }
194 BrowsingDataDatabaseHelper::DeleteDatabase(origin_identifier, name); 197 BrowsingDataDatabaseHelper::DeleteDatabase(origin_identifier, name);
195 } 198 }
196 199
197 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {} 200 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698