Chromium Code Reviews| 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 11 matching lines...) Expand all Loading... | |
| 22 | 22 |
| 23 // Helper wrapper for net::registry_controlled_domains::SameDomainOrHost | 23 // Helper wrapper for net::registry_controlled_domains::SameDomainOrHost |
| 24 // which always excludes private registries. | 24 // which always excludes private registries. |
| 25 bool SamePublicDomainOrHost(const GURL& gurl1, const GURL& gurl2) { | 25 bool SamePublicDomainOrHost(const GURL& gurl1, const GURL& gurl2) { |
| 26 return net::registry_controlled_domains::SameDomainOrHost( | 26 return net::registry_controlled_domains::SameDomainOrHost( |
| 27 gurl1, | 27 gurl1, |
| 28 gurl2, | 28 gurl2, |
| 29 net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES); | 29 net::registry_controlled_domains::EXCLUDE_PRIVATE_REGISTRIES); |
| 30 } | 30 } |
| 31 | 31 |
| 32 } | 32 } // namespace |
| 33 | 33 |
| 34 LocalSharedObjectsContainer::LocalSharedObjectsContainer(Profile* profile) | 34 LocalSharedObjectsContainer::LocalSharedObjectsContainer(Profile* profile) |
|
michaeln
2013/06/21 19:35:57
i hope this class is test code but it's not labele
jsbell
2013/06/24 17:50:43
It's not - instances of this class apparently hold
| |
| 35 : appcaches_(new CannedBrowsingDataAppCacheHelper(profile)), | 35 : appcaches_(new CannedBrowsingDataAppCacheHelper(profile)), |
| 36 cookies_(new CannedBrowsingDataCookieHelper( | 36 cookies_(new CannedBrowsingDataCookieHelper( |
| 37 profile->GetRequestContext())), | 37 profile->GetRequestContext())), |
| 38 databases_(new CannedBrowsingDataDatabaseHelper(profile)), | 38 databases_(new CannedBrowsingDataDatabaseHelper(profile)), |
| 39 file_systems_(new CannedBrowsingDataFileSystemHelper(profile)), | 39 file_systems_(new CannedBrowsingDataFileSystemHelper(profile)), |
| 40 indexed_dbs_(new CannedBrowsingDataIndexedDBHelper()), | 40 indexed_dbs_(new CannedBrowsingDataIndexedDBHelper(profile)), |
| 41 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), | 41 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), |
| 42 server_bound_certs_(new CannedBrowsingDataServerBoundCertHelper()), | 42 server_bound_certs_(new CannedBrowsingDataServerBoundCertHelper()), |
| 43 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { | 43 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { |
| 44 } | 44 } |
| 45 | 45 |
| 46 LocalSharedObjectsContainer::~LocalSharedObjectsContainer() { | 46 LocalSharedObjectsContainer::~LocalSharedObjectsContainer() { |
| 47 } | 47 } |
| 48 | 48 |
| 49 void LocalSharedObjectsContainer::Reset() { | 49 void LocalSharedObjectsContainer::Reset() { |
| 50 appcaches_->Reset(); | 50 appcaches_->Reset(); |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 session_storages()->Clone(), | 189 session_storages()->Clone(), |
| 190 appcaches()->Clone(), | 190 appcaches()->Clone(), |
| 191 indexed_dbs()->Clone(), | 191 indexed_dbs()->Clone(), |
| 192 file_systems()->Clone(), | 192 file_systems()->Clone(), |
| 193 NULL, | 193 NULL, |
| 194 server_bound_certs()->Clone(), | 194 server_bound_certs()->Clone(), |
| 195 NULL); | 195 NULL); |
| 196 | 196 |
| 197 return make_scoped_ptr(new CookiesTreeModel(container, NULL, true)); | 197 return make_scoped_ptr(new CookiesTreeModel(container, NULL, true)); |
| 198 } | 198 } |
| OLD | NEW |