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/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 #include "content/browser/tab_contents/tab_contents.h" | 27 #include "content/browser/tab_contents/tab_contents.h" |
28 #include "content/browser/tab_contents/tab_contents_delegate.h" | 28 #include "content/browser/tab_contents/tab_contents_delegate.h" |
29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
30 #include "content/common/view_messages.h" | 30 #include "content/common/view_messages.h" |
31 #include "webkit/fileapi/file_system_types.h" | 31 #include "webkit/fileapi/file_system_types.h" |
32 | 32 |
33 using content::BrowserThread; | 33 using content::BrowserThread; |
34 | 34 |
35 namespace { | 35 namespace { |
36 typedef std::list<TabSpecificContentSettings*> TabSpecificList; | 36 typedef std::list<TabSpecificContentSettings*> TabSpecificList; |
37 static base::LazyInstance<TabSpecificList> g_tab_specific( | 37 static base::LazyInstance<TabSpecificList> g_tab_specific = |
38 base::LINKER_INITIALIZED); | 38 LAZY_INSTANCE_INITIALIZER; |
39 } | 39 } |
40 | 40 |
41 bool TabSpecificContentSettings::LocalSharedObjectsContainer::empty() const { | 41 bool TabSpecificContentSettings::LocalSharedObjectsContainer::empty() const { |
42 return appcaches_->empty() && | 42 return appcaches_->empty() && |
43 cookies_->empty() && | 43 cookies_->empty() && |
44 databases_->empty() && | 44 databases_->empty() && |
45 file_systems_->empty() && | 45 file_systems_->empty() && |
46 indexed_dbs_->empty() && | 46 indexed_dbs_->empty() && |
47 local_storages_->empty() && | 47 local_storages_->empty() && |
48 session_storages_->empty(); | 48 session_storages_->empty(); |
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
526 return new CookiesTreeModel(cookies_->Clone(), | 526 return new CookiesTreeModel(cookies_->Clone(), |
527 databases_->Clone(), | 527 databases_->Clone(), |
528 local_storages_->Clone(), | 528 local_storages_->Clone(), |
529 session_storages_->Clone(), | 529 session_storages_->Clone(), |
530 appcaches_->Clone(), | 530 appcaches_->Clone(), |
531 indexed_dbs_->Clone(), | 531 indexed_dbs_->Clone(), |
532 file_systems_->Clone(), | 532 file_systems_->Clone(), |
533 NULL, | 533 NULL, |
534 true); | 534 true); |
535 } | 535 } |
OLD | NEW |