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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_quota_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_quota_helper.h" 5 #include "chrome/browser/browsing_data/browsing_data_quota_helper.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "content/public/browser/browser_thread.h" 8 #include "content/public/browser/browser_thread.h"
9 9
10 using content::BrowserThread; 10 using content::BrowserThread;
11 11
12 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo() {} 12 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo() {}
13 13
14 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo(const std::string& host) 14 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo(const std::string& host)
15 : host(host) {} 15 : host(host) {}
16 16
17 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo(const std::string& host, 17 BrowsingDataQuotaHelper::QuotaInfo::QuotaInfo(const std::string& host,
18 int64 temporary_usage, 18 int64_t temporary_usage,
19 int64 persistent_usage, 19 int64_t persistent_usage,
20 int64 syncable_usage) 20 int64_t syncable_usage)
21 : host(host), 21 : host(host),
22 temporary_usage(temporary_usage), 22 temporary_usage(temporary_usage),
23 persistent_usage(persistent_usage), 23 persistent_usage(persistent_usage),
24 syncable_usage(syncable_usage) {} 24 syncable_usage(syncable_usage) {}
25 25
26 BrowsingDataQuotaHelper::QuotaInfo::~QuotaInfo() {} 26 BrowsingDataQuotaHelper::QuotaInfo::~QuotaInfo() {}
27 27
28 // static 28 // static
29 void BrowsingDataQuotaHelperDeleter::Destruct( 29 void BrowsingDataQuotaHelperDeleter::Destruct(
30 const BrowsingDataQuotaHelper* helper) { 30 const BrowsingDataQuotaHelper* helper) {
(...skipping 16 matching lines...) Expand all
47 return this->persistent_usage < rhs.persistent_usage; 47 return this->persistent_usage < rhs.persistent_usage;
48 } 48 }
49 49
50 bool BrowsingDataQuotaHelper::QuotaInfo::operator ==( 50 bool BrowsingDataQuotaHelper::QuotaInfo::operator ==(
51 const BrowsingDataQuotaHelper::QuotaInfo& rhs) const { 51 const BrowsingDataQuotaHelper::QuotaInfo& rhs) const {
52 return this->host == rhs.host && 52 return this->host == rhs.host &&
53 this->temporary_usage == rhs.temporary_usage && 53 this->temporary_usage == rhs.temporary_usage &&
54 this->persistent_usage == rhs.persistent_usage && 54 this->persistent_usage == rhs.persistent_usage &&
55 this->syncable_usage == rhs.syncable_usage; 55 this->syncable_usage == rhs.syncable_usage;
56 } 56 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698