OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/tab_specific_content_settings.h" | 5 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
6 | 6 |
7 #include <list> | 7 #include <list> |
8 | 8 |
9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 entry_url, map->GetContentSettings(entry_url, entry_url))); | 474 entry_url, map->GetContentSettings(entry_url, entry_url))); |
475 } | 475 } |
476 } | 476 } |
477 | 477 |
478 TabSpecificContentSettings::LocalSharedObjectsContainer:: | 478 TabSpecificContentSettings::LocalSharedObjectsContainer:: |
479 LocalSharedObjectsContainer(Profile* profile) | 479 LocalSharedObjectsContainer(Profile* profile) |
480 : appcaches_(new CannedBrowsingDataAppCacheHelper(profile)), | 480 : appcaches_(new CannedBrowsingDataAppCacheHelper(profile)), |
481 cookies_(new CannedBrowsingDataCookieHelper(profile)), | 481 cookies_(new CannedBrowsingDataCookieHelper(profile)), |
482 databases_(new CannedBrowsingDataDatabaseHelper(profile)), | 482 databases_(new CannedBrowsingDataDatabaseHelper(profile)), |
483 file_systems_(new CannedBrowsingDataFileSystemHelper(profile)), | 483 file_systems_(new CannedBrowsingDataFileSystemHelper(profile)), |
484 indexed_dbs_(new CannedBrowsingDataIndexedDBHelper(profile)), | 484 indexed_dbs_(new CannedBrowsingDataIndexedDBHelper()), |
485 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), | 485 local_storages_(new CannedBrowsingDataLocalStorageHelper(profile)), |
486 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { | 486 session_storages_(new CannedBrowsingDataLocalStorageHelper(profile)) { |
487 } | 487 } |
488 | 488 |
489 TabSpecificContentSettings::LocalSharedObjectsContainer:: | 489 TabSpecificContentSettings::LocalSharedObjectsContainer:: |
490 ~LocalSharedObjectsContainer() { | 490 ~LocalSharedObjectsContainer() { |
491 } | 491 } |
492 | 492 |
493 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { | 493 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { |
494 appcaches_->Reset(); | 494 appcaches_->Reset(); |
(...skipping 10 matching lines...) Expand all Loading... |
505 return new CookiesTreeModel(cookies_->Clone(), | 505 return new CookiesTreeModel(cookies_->Clone(), |
506 databases_->Clone(), | 506 databases_->Clone(), |
507 local_storages_->Clone(), | 507 local_storages_->Clone(), |
508 session_storages_->Clone(), | 508 session_storages_->Clone(), |
509 appcaches_->Clone(), | 509 appcaches_->Clone(), |
510 indexed_dbs_->Clone(), | 510 indexed_dbs_->Clone(), |
511 file_systems_->Clone(), | 511 file_systems_->Clone(), |
512 NULL, | 512 NULL, |
513 true); | 513 true); |
514 } | 514 } |
OLD | NEW |