| 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" |
| 11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
| 14 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
| 15 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 15 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
| 16 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 16 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
| 17 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" | 17 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" |
| 18 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 18 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| 19 #include "chrome/browser/browsing_data/cookies_tree_model.h" | 19 #include "chrome/browser/browsing_data/cookies_tree_model.h" |
| 20 #include "chrome/browser/chrome_notification_types.h" | 20 #include "chrome/browser/chrome_notification_types.h" |
| 21 #include "chrome/browser/content_settings/content_settings_utils.h" | |
| 22 #include "chrome/browser/content_settings/host_content_settings_map.h" | |
| 23 #include "chrome/browser/media/media_stream_capture_indicator.h" | 21 #include "chrome/browser/media/media_stream_capture_indicator.h" |
| 24 #include "chrome/browser/prerender/prerender_manager.h" | 22 #include "chrome/browser/prerender/prerender_manager.h" |
| 25 #include "chrome/browser/profiles/profile.h" | 23 #include "chrome/browser/profiles/profile.h" |
| 26 #include "chrome/common/chrome_switches.h" | 24 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/common/pref_names.h" | 25 #include "chrome/common/pref_names.h" |
| 28 #include "chrome/common/render_messages.h" | 26 #include "chrome/common/render_messages.h" |
| 29 #include "components/content_settings/core/browser/content_settings_details.h" | 27 #include "components/content_settings/core/browser/content_settings_details.h" |
| 28 #include "components/content_settings/core/browser/content_settings_utils.h" |
| 29 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 30 #include "content/public/browser/browser_thread.h" | 30 #include "content/public/browser/browser_thread.h" |
| 31 #include "content/public/browser/navigation_controller.h" | 31 #include "content/public/browser/navigation_controller.h" |
| 32 #include "content/public/browser/navigation_details.h" | 32 #include "content/public/browser/navigation_details.h" |
| 33 #include "content/public/browser/navigation_entry.h" | 33 #include "content/public/browser/navigation_entry.h" |
| 34 #include "content/public/browser/notification_registrar.h" | 34 #include "content/public/browser/notification_registrar.h" |
| 35 #include "content/public/browser/notification_service.h" | 35 #include "content/public/browser/notification_service.h" |
| 36 #include "content/public/browser/render_frame_host.h" | 36 #include "content/public/browser/render_frame_host.h" |
| 37 #include "content/public/browser/render_view_host.h" | 37 #include "content/public/browser/render_view_host.h" |
| 38 #include "content/public/browser/web_contents.h" | 38 #include "content/public/browser/web_contents.h" |
| 39 #include "content/public/browser/web_contents_delegate.h" | 39 #include "content/public/browser/web_contents_delegate.h" |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 767 } | 767 } |
| 768 | 768 |
| 769 void TabSpecificContentSettings::RemoveSiteDataObserver( | 769 void TabSpecificContentSettings::RemoveSiteDataObserver( |
| 770 SiteDataObserver* observer) { | 770 SiteDataObserver* observer) { |
| 771 observer_list_.RemoveObserver(observer); | 771 observer_list_.RemoveObserver(observer); |
| 772 } | 772 } |
| 773 | 773 |
| 774 void TabSpecificContentSettings::NotifySiteDataObservers() { | 774 void TabSpecificContentSettings::NotifySiteDataObservers() { |
| 775 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); | 775 FOR_EACH_OBSERVER(SiteDataObserver, observer_list_, OnSiteDataAccessed()); |
| 776 } | 776 } |
| OLD | NEW |