| 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_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 Loading... |
| 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 Loading... |
| 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() {} |
| OLD | NEW |