| 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/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 18 matching lines...) Expand all Loading... |
| 29 #include "content/public/browser/notification_service.h" | 29 #include "content/public/browser/notification_service.h" |
| 30 #include "content/public/browser/render_view_host.h" | 30 #include "content/public/browser/render_view_host.h" |
| 31 #include "content/public/browser/render_view_host_delegate.h" | 31 #include "content/public/browser/render_view_host_delegate.h" |
| 32 #include "content/public/browser/web_contents.h" | 32 #include "content/public/browser/web_contents.h" |
| 33 #include "content/public/browser/web_contents_delegate.h" | 33 #include "content/public/browser/web_contents_delegate.h" |
| 34 #include "webkit/fileapi/file_system_types.h" | 34 #include "webkit/fileapi/file_system_types.h" |
| 35 | 35 |
| 36 using content::BrowserThread; | 36 using content::BrowserThread; |
| 37 using content::NavigationController; | 37 using content::NavigationController; |
| 38 using content::NavigationEntry; | 38 using content::NavigationEntry; |
| 39 using content::RenderViewHost; |
| 39 using content::WebContents; | 40 using content::WebContents; |
| 40 | 41 |
| 41 namespace { | 42 namespace { |
| 42 typedef std::list<TabSpecificContentSettings*> TabSpecificList; | 43 typedef std::list<TabSpecificContentSettings*> TabSpecificList; |
| 43 static base::LazyInstance<TabSpecificList> g_tab_specific = | 44 static base::LazyInstance<TabSpecificList> g_tab_specific = |
| 44 LAZY_INSTANCE_INITIALIZER; | 45 LAZY_INSTANCE_INITIALIZER; |
| 45 } | 46 } |
| 46 | 47 |
| 47 bool TabSpecificContentSettings::LocalSharedObjectsContainer::empty() const { | 48 bool TabSpecificContentSettings::LocalSharedObjectsContainer::empty() const { |
| 48 return appcaches_->empty() && | 49 return appcaches_->empty() && |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 498 |
| 498 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { | 499 void TabSpecificContentSettings::LocalSharedObjectsContainer::Reset() { |
| 499 appcaches_->Reset(); | 500 appcaches_->Reset(); |
| 500 cookies_->Reset(); | 501 cookies_->Reset(); |
| 501 databases_->Reset(); | 502 databases_->Reset(); |
| 502 file_systems_->Reset(); | 503 file_systems_->Reset(); |
| 503 indexed_dbs_->Reset(); | 504 indexed_dbs_->Reset(); |
| 504 local_storages_->Reset(); | 505 local_storages_->Reset(); |
| 505 session_storages_->Reset(); | 506 session_storages_->Reset(); |
| 506 } | 507 } |
| OLD | NEW |