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

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

Issue 1542413002: Switch to standard integer types in chrome/browser/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 11 matching lines...) Expand all
22 #include "storage/common/database/database_identifier.h" 22 #include "storage/common/database/database_identifier.h"
23 23
24 using content::BrowserContext; 24 using content::BrowserContext;
25 using content::BrowserThread; 25 using content::BrowserThread;
26 using storage::DatabaseIdentifier; 26 using storage::DatabaseIdentifier;
27 27
28 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo( 28 BrowsingDataDatabaseHelper::DatabaseInfo::DatabaseInfo(
29 const DatabaseIdentifier& identifier, 29 const DatabaseIdentifier& identifier,
30 const std::string& database_name, 30 const std::string& database_name,
31 const std::string& description, 31 const std::string& description,
32 int64 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 }
40 39
41 BrowsingDataDatabaseHelper::DatabaseInfo::~DatabaseInfo() {} 40 BrowsingDataDatabaseHelper::DatabaseInfo::~DatabaseInfo() {}
42 41
43 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile) 42 BrowsingDataDatabaseHelper::BrowsingDataDatabaseHelper(Profile* profile)
44 : tracker_(BrowserContext::GetDefaultStoragePartition(profile) 43 : tracker_(BrowserContext::GetDefaultStoragePartition(profile)
45 ->GetDatabaseTracker()) {} 44 ->GetDatabaseTracker()) {}
46 45
47 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() { 46 BrowsingDataDatabaseHelper::~BrowsingDataDatabaseHelper() {
48 } 47 }
49 48
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ++it) { 188 ++it) {
190 if (it->origin == origin && it->name == name) { 189 if (it->origin == origin && it->name == name) {
191 pending_database_info_.erase(it); 190 pending_database_info_.erase(it);
192 break; 191 break;
193 } 192 }
194 } 193 }
195 BrowsingDataDatabaseHelper::DeleteDatabase(origin_identifier, name); 194 BrowsingDataDatabaseHelper::DeleteDatabase(origin_identifier, name);
196 } 195 }
197 196
198 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {} 197 CannedBrowsingDataDatabaseHelper::~CannedBrowsingDataDatabaseHelper() {}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698