| OLD | NEW |
| 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 "webkit/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 "webkit/browser/appcache/appcache.h" | 8 #include "content/browser/appcache/appcache.h" |
| 9 #include "webkit/browser/appcache/appcache_group.h" | 9 #include "content/browser/appcache/appcache_group.h" |
| 10 #include "webkit/browser/appcache/appcache_response.h" | 10 #include "content/browser/appcache/appcache_response.h" |
| 11 | 11 |
| 12 namespace appcache { | 12 namespace content { |
| 13 | 13 |
| 14 AppCacheWorkingSet::AppCacheWorkingSet() : is_disabled_(false) {} | 14 AppCacheWorkingSet::AppCacheWorkingSet() : is_disabled_(false) {} |
| 15 | 15 |
| 16 AppCacheWorkingSet::~AppCacheWorkingSet() { | 16 AppCacheWorkingSet::~AppCacheWorkingSet() { |
| 17 DCHECK(caches_.empty()); | 17 DCHECK(caches_.empty()); |
| 18 DCHECK(groups_.empty()); | 18 DCHECK(groups_.empty()); |
| 19 DCHECK(groups_by_origin_.empty()); | 19 DCHECK(groups_by_origin_.empty()); |
| 20 } | 20 } |
| 21 | 21 |
| 22 void AppCacheWorkingSet::Disable() { | 22 void AppCacheWorkingSet::Disable() { |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 int64 response_id = info->response_id(); | 71 int64 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 |
| OLD | NEW |