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

Side by Side Diff: webkit/appcache/appcache_working_set.cc

Issue 3522004: FBTF: Move ctors/dtors into implementation files. Adds ctors/dtors to non-POD structs. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 2 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 "webkit/appcache/appcache_working_set.h" 5 #include "webkit/appcache/appcache_working_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "webkit/appcache/appcache.h" 8 #include "webkit/appcache/appcache.h"
9 #include "webkit/appcache/appcache_group.h" 9 #include "webkit/appcache/appcache_group.h"
10 #include "webkit/appcache/appcache_response.h" 10 #include "webkit/appcache/appcache_response.h"
11 11
12 namespace appcache { 12 namespace appcache {
13 13
14 AppCacheWorkingSet::AppCacheWorkingSet() : is_disabled_(false) {}
15
14 AppCacheWorkingSet::~AppCacheWorkingSet() { 16 AppCacheWorkingSet::~AppCacheWorkingSet() {
15 DCHECK(caches_.empty()); 17 DCHECK(caches_.empty());
16 DCHECK(groups_.empty()); 18 DCHECK(groups_.empty());
17 DCHECK(groups_by_origin_.empty()); 19 DCHECK(groups_by_origin_.empty());
18 } 20 }
19 21
20 void AppCacheWorkingSet::Disable() { 22 void AppCacheWorkingSet::Disable() {
21 if (is_disabled_) 23 if (is_disabled_)
22 return; 24 return;
23 is_disabled_ = true; 25 is_disabled_ = true;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 int64 response_id = info->response_id(); 71 int64 response_id = info->response_id();
70 DCHECK(response_infos_.find(response_id) == response_infos_.end()); 72 DCHECK(response_infos_.find(response_id) == response_infos_.end());
71 response_infos_.insert(ResponseInfoMap::value_type(response_id, info)); 73 response_infos_.insert(ResponseInfoMap::value_type(response_id, info));
72 } 74 }
73 75
74 void AppCacheWorkingSet::RemoveResponseInfo(AppCacheResponseInfo* info) { 76 void AppCacheWorkingSet::RemoveResponseInfo(AppCacheResponseInfo* info) {
75 response_infos_.erase(info->response_id()); 77 response_infos_.erase(info->response_id());
76 } 78 }
77 79
78 } // namespace 80 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698