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

Unified Diff: content/browser/appcache/appcache_storage.cc

Issue 1498003003: Remove kint64max. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: INT64_MAX Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/appcache/appcache_storage.h ('k') | content/browser/appcache/appcache_storage_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_storage.cc
diff --git a/content/browser/appcache/appcache_storage.cc b/content/browser/appcache/appcache_storage.cc
index 077000616ae55b80cb4b91a102d61bee827c1c5b..7b94bf44965b3c6374f6415f23691fc0a9e8d631 100644
--- a/content/browser/appcache/appcache_storage.cc
+++ b/content/browser/appcache/appcache_storage.cc
@@ -15,7 +15,7 @@
namespace content {
// static
-const int64 AppCacheStorage::kUnitializedId = -1;
+const int64_t AppCacheStorage::kUnitializedId = -1;
AppCacheStorage::AppCacheStorage(AppCacheServiceImpl* service)
: last_cache_id_(kUnitializedId), last_group_id_(kUnitializedId),
@@ -41,8 +41,8 @@ AppCacheStorage::DelegateReference::~DelegateReference() {
AppCacheStorage::ResponseInfoLoadTask::ResponseInfoLoadTask(
const GURL& manifest_url,
- int64 group_id,
- int64 response_id,
+ int64_t group_id,
+ int64_t response_id,
AppCacheStorage* storage)
: storage_(storage),
manifest_url_(manifest_url),
@@ -79,8 +79,10 @@ void AppCacheStorage::ResponseInfoLoadTask::OnReadComplete(int result) {
delete this;
}
-void AppCacheStorage::LoadResponseInfo(
- const GURL& manifest_url, int64 group_id, int64 id, Delegate* delegate) {
+void AppCacheStorage::LoadResponseInfo(const GURL& manifest_url,
+ int64_t group_id,
+ int64_t id,
+ Delegate* delegate) {
AppCacheResponseInfo* info = working_set_.GetResponseInfo(id);
if (info) {
delegate->OnResponseInfoLoaded(info, id);
@@ -95,10 +97,10 @@ void AppCacheStorage::LoadResponseInfo(
info_load->StartIfNeeded();
}
-void AppCacheStorage::UpdateUsageMapAndNotify(
- const GURL& origin, int64 new_usage) {
+void AppCacheStorage::UpdateUsageMapAndNotify(const GURL& origin,
+ int64_t new_usage) {
DCHECK_GE(new_usage, 0);
- int64 old_usage = usage_map_[origin];
+ int64_t old_usage = usage_map_[origin];
if (new_usage > 0)
usage_map_[origin] = new_usage;
else
« no previous file with comments | « content/browser/appcache/appcache_storage.h ('k') | content/browser/appcache/appcache_storage_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698