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

Unified Diff: content/browser/appcache/appcache_working_set.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/appcache/appcache_working_set.h
diff --git a/content/browser/appcache/appcache_working_set.h b/content/browser/appcache/appcache_working_set.h
index 5b9d00a1e1c733d14733d5f08d7a578a8a1b4259..e9483b6c35737b3b1d72ab62427391d7688f208f 100644
--- a/content/browser/appcache/appcache_working_set.h
+++ b/content/browser/appcache/appcache_working_set.h
@@ -5,6 +5,8 @@
#ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_
#define CONTENT_BROWSER_APPCACHE_APPCACHE_WORKING_SET_H_
+#include <stdint.h>
+
#include <map>
#include "base/containers/hash_tables.h"
@@ -31,7 +33,7 @@ class CONTENT_EXPORT AppCacheWorkingSet {
void AddCache(AppCache* cache);
void RemoveCache(AppCache* cache);
- AppCache* GetCache(int64 id) {
+ AppCache* GetCache(int64_t id) {
CacheMap::iterator it = caches_.find(id);
return (it != caches_.end()) ? it->second : NULL;
}
@@ -49,15 +51,15 @@ class CONTENT_EXPORT AppCacheWorkingSet {
void AddResponseInfo(AppCacheResponseInfo* response_info);
void RemoveResponseInfo(AppCacheResponseInfo* response_info);
- AppCacheResponseInfo* GetResponseInfo(int64 id) {
+ AppCacheResponseInfo* GetResponseInfo(int64_t id) {
ResponseInfoMap::iterator it = response_infos_.find(id);
return (it != response_infos_.end()) ? it->second : NULL;
}
private:
- typedef base::hash_map<int64, AppCache*> CacheMap;
+ typedef base::hash_map<int64_t, AppCache*> CacheMap;
typedef std::map<GURL, GroupMap> GroupsByOriginMap;
- typedef base::hash_map<int64, AppCacheResponseInfo*> ResponseInfoMap;
+ typedef base::hash_map<int64_t, AppCacheResponseInfo*> ResponseInfoMap;
GroupMap* GetMutableGroupsInOrigin(const GURL& origin_url) {
GroupsByOriginMap::iterator it = groups_by_origin_.find(origin_url);
« no previous file with comments | « content/browser/appcache/appcache_url_request_job_unittest.cc ('k') | content/browser/appcache/appcache_working_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698