| 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/ui/content_settings/content_setting_bubble_model.h" | 5 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 8 #include "chrome/browser/content_settings/content_settings_utils.h" | 9 #include "chrome/browser/content_settings/content_settings_utils.h" |
| 9 #include "chrome/browser/content_settings/cookie_settings.h" | 10 #include "chrome/browser/content_settings/cookie_settings.h" |
| 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 11 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 11 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 12 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
| 12 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 13 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
| 13 #include "chrome/browser/favicon/favicon_tab_helper.h" | 14 #include "chrome/browser/favicon/favicon_tab_helper.h" |
| 14 #include "chrome/browser/infobars/infobar_tab_helper.h" | |
| 15 #include "chrome/browser/prefs/pref_service.h" | 15 #include "chrome/browser/prefs/pref_service.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 16 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" | 17 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" |
| 18 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" | 18 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper_delegate.
h" |
| 19 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" | 19 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
| 20 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" | 20 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" |
| 21 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 21 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 22 #include "chrome/common/chrome_notification_types.h" | 22 #include "chrome/common/chrome_notification_types.h" |
| 23 #include "chrome/common/content_settings.h" | 23 #include "chrome/common/content_settings.h" |
| 24 #include "chrome/common/pref_names.h" | 24 #include "chrome/common/pref_names.h" |
| (...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 const content::NotificationDetails& details) { | 814 const content::NotificationDetails& details) { |
| 815 if (type == chrome::NOTIFICATION_TAB_CONTENTS_DESTROYED) { | 815 if (type == chrome::NOTIFICATION_TAB_CONTENTS_DESTROYED) { |
| 816 DCHECK_EQ(tab_contents_, content::Source<TabContents>(source).ptr()); | 816 DCHECK_EQ(tab_contents_, content::Source<TabContents>(source).ptr()); |
| 817 tab_contents_ = NULL; | 817 tab_contents_ = NULL; |
| 818 } else { | 818 } else { |
| 819 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 819 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
| 820 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); | 820 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); |
| 821 profile_ = NULL; | 821 profile_ = NULL; |
| 822 } | 822 } |
| 823 } | 823 } |
| OLD | NEW |