| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/tab_contents/tab_specific_content_settings.h" | 5 #include "chrome/browser/tab_contents/tab_specific_content_settings.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/browsing_data_appcache_helper.h" | 8 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 9 #include "chrome/browser/browsing_data_database_helper.h" | 9 #include "chrome/browser/browsing_data_database_helper.h" |
| 10 #include "chrome/browser/browsing_data_indexed_db_helper.h" | 10 #include "chrome/browser/browsing_data_indexed_db_helper.h" |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), | 294 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), |
| 295 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { | 295 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { |
| 296 } | 296 } |
| 297 | 297 |
| 298 TabSpecificContentSettings::LocalSharedObjectsContainer:: | 298 TabSpecificContentSettings::LocalSharedObjectsContainer:: |
| 299 ~LocalSharedObjectsContainer() { | 299 ~LocalSharedObjectsContainer() { |
| 300 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); | 300 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); |
| 301 } | 301 } |
| 302 | 302 |
| 303 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { | 303 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { |
| 304 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); | 304 cookies_ = new net::CookieMonster(NULL, NULL); |
| 305 cookies_->DeleteAll(false); | |
| 306 cookies_->ValidateMap(prerender::PrerenderManager::GetMode()); | |
| 307 appcaches_->Reset(); | 305 appcaches_->Reset(); |
| 308 databases_->Reset(); | 306 databases_->Reset(); |
| 309 indexed_dbs_->Reset(); | 307 indexed_dbs_->Reset(); |
| 310 local_storages_->Reset(); | 308 local_storages_->Reset(); |
| 311 session_storages_->Reset(); | 309 session_storages_->Reset(); |
| 312 } | 310 } |
| 313 | 311 |
| 314 CookiesTreeModel* | 312 CookiesTreeModel* |
| 315 TabSpecificContentSettings::LocalSharedObjectsContainer::GetCookiesTreeModel() { | 313 TabSpecificContentSettings::LocalSharedObjectsContainer::GetCookiesTreeModel() { |
| 316 return new CookiesTreeModel(cookies_, | 314 return new CookiesTreeModel(cookies_, |
| 317 databases_, | 315 databases_, |
| 318 local_storages_, | 316 local_storages_, |
| 319 session_storages_, | 317 session_storages_, |
| 320 appcaches_, | 318 appcaches_, |
| 321 indexed_dbs_); | 319 indexed_dbs_); |
| 322 } | 320 } |
| OLD | NEW |