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

Side by Side Diff: content/browser/appcache/appcache_working_set.cc

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 4 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "content/browser/appcache/appcache_working_set.h" 5 #include "content/browser/appcache/appcache_working_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/appcache/appcache.h" 8 #include "content/browser/appcache/appcache.h"
9 #include "content/browser/appcache/appcache_group.h" 9 #include "content/browser/appcache/appcache_group.h"
10 #include "content/browser/appcache/appcache_response.h" 10 #include "content/browser/appcache/appcache_response.h"
(...skipping 15 matching lines...) Expand all
26 caches_.clear(); 26 caches_.clear();
27 groups_.clear(); 27 groups_.clear();
28 groups_by_origin_.clear(); 28 groups_by_origin_.clear();
29 response_infos_.clear(); 29 response_infos_.clear();
30 } 30 }
31 31
32 void AppCacheWorkingSet::AddCache(AppCache* cache) { 32 void AppCacheWorkingSet::AddCache(AppCache* cache) {
33 if (is_disabled_) 33 if (is_disabled_)
34 return; 34 return;
35 DCHECK(cache->cache_id() != kAppCacheNoCacheId); 35 DCHECK(cache->cache_id() != kAppCacheNoCacheId);
36 int64 cache_id = cache->cache_id(); 36 int64_t cache_id = cache->cache_id();
37 DCHECK(caches_.find(cache_id) == caches_.end()); 37 DCHECK(caches_.find(cache_id) == caches_.end());
38 caches_.insert(CacheMap::value_type(cache_id, cache)); 38 caches_.insert(CacheMap::value_type(cache_id, cache));
39 } 39 }
40 40
41 void AppCacheWorkingSet::RemoveCache(AppCache* cache) { 41 void AppCacheWorkingSet::RemoveCache(AppCache* cache) {
42 caches_.erase(cache->cache_id()); 42 caches_.erase(cache->cache_id());
43 } 43 }
44 44
45 void AppCacheWorkingSet::AddGroup(AppCacheGroup* group) { 45 void AppCacheWorkingSet::AddGroup(AppCacheGroup* group) {
46 if (is_disabled_) 46 if (is_disabled_)
(...skipping 14 matching lines...) Expand all
61 groups_in_origin->erase(url); 61 groups_in_origin->erase(url);
62 if (groups_in_origin->empty()) 62 if (groups_in_origin->empty())
63 groups_by_origin_.erase(origin_url); 63 groups_by_origin_.erase(origin_url);
64 } 64 }
65 } 65 }
66 66
67 void AppCacheWorkingSet::AddResponseInfo(AppCacheResponseInfo* info) { 67 void AppCacheWorkingSet::AddResponseInfo(AppCacheResponseInfo* info) {
68 if (is_disabled_) 68 if (is_disabled_)
69 return; 69 return;
70 DCHECK(info->response_id() != kAppCacheNoResponseId); 70 DCHECK(info->response_id() != kAppCacheNoResponseId);
71 int64 response_id = info->response_id(); 71 int64_t response_id = info->response_id();
72 DCHECK(response_infos_.find(response_id) == response_infos_.end()); 72 DCHECK(response_infos_.find(response_id) == response_infos_.end());
73 response_infos_.insert(ResponseInfoMap::value_type(response_id, info)); 73 response_infos_.insert(ResponseInfoMap::value_type(response_id, info));
74 } 74 }
75 75
76 void AppCacheWorkingSet::RemoveResponseInfo(AppCacheResponseInfo* info) { 76 void AppCacheWorkingSet::RemoveResponseInfo(AppCacheResponseInfo* info) {
77 response_infos_.erase(info->response_id()); 77 response_infos_.erase(info->response_id());
78 } 78 }
79 79
80 } // namespace 80 } // namespace
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_working_set.h ('k') | content/browser/appcache/chrome_appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698