OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/content_settings/local_shared_objects_container.h" | 5 #include "chrome/browser/content_settings/local_shared_objects_container.h" |
6 | 6 |
7 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 7 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
8 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 8 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
10 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 10 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 ++count; | 161 ++count; |
162 } | 162 } |
163 | 163 |
164 // Count the AppCache manifest files for the domain of the given |origin|. | 164 // Count the AppCache manifest files for the domain of the given |origin|. |
165 typedef BrowsingDataAppCacheHelper::OriginAppCacheInfoMap | 165 typedef BrowsingDataAppCacheHelper::OriginAppCacheInfoMap |
166 OriginAppCacheInfoMap; | 166 OriginAppCacheInfoMap; |
167 const OriginAppCacheInfoMap& map = appcaches()->GetOriginAppCacheInfoMap(); | 167 const OriginAppCacheInfoMap& map = appcaches()->GetOriginAppCacheInfoMap(); |
168 for (OriginAppCacheInfoMap::const_iterator it = map.begin(); | 168 for (OriginAppCacheInfoMap::const_iterator it = map.begin(); |
169 it != map.end(); | 169 it != map.end(); |
170 ++it) { | 170 ++it) { |
171 const appcache::AppCacheInfoVector& info_vector = it->second; | 171 const content::AppCacheInfoVector& info_vector = it->second; |
172 for (appcache::AppCacheInfoVector::const_iterator info = | 172 for (content::AppCacheInfoVector::const_iterator info = |
173 info_vector.begin(); | 173 info_vector.begin(); |
174 info != info_vector.end(); | 174 info != info_vector.end(); |
175 ++info) { | 175 ++info) { |
176 if (SameDomainOrHost(origin, info->manifest_url)) | 176 if (SameDomainOrHost(origin, info->manifest_url)) |
177 ++count; | 177 ++count; |
178 } | 178 } |
179 } | 179 } |
180 | 180 |
181 return count; | 181 return count; |
182 } | 182 } |
183 | 183 |
184 scoped_ptr<CookiesTreeModel> | 184 scoped_ptr<CookiesTreeModel> |
185 LocalSharedObjectsContainer::CreateCookiesTreeModel() const { | 185 LocalSharedObjectsContainer::CreateCookiesTreeModel() const { |
186 LocalDataContainer* container = new LocalDataContainer( | 186 LocalDataContainer* container = new LocalDataContainer( |
187 cookies(), | 187 cookies(), |
188 databases(), | 188 databases(), |
189 local_storages(), | 189 local_storages(), |
190 session_storages(), | 190 session_storages(), |
191 appcaches(), | 191 appcaches(), |
192 indexed_dbs(), | 192 indexed_dbs(), |
193 file_systems(), | 193 file_systems(), |
194 NULL, | 194 NULL, |
195 server_bound_certs(), | 195 server_bound_certs(), |
196 NULL); | 196 NULL); |
197 | 197 |
198 return make_scoped_ptr(new CookiesTreeModel(container, NULL, true)); | 198 return make_scoped_ptr(new CookiesTreeModel(container, NULL, true)); |
199 } | 199 } |
OLD | NEW |