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/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
13 #include "chrome/browser/content_settings/chrome_content_settings_utils.h" | 13 #include "chrome/browser/content_settings/chrome_content_settings_utils.h" |
14 #include "chrome/browser/content_settings/cookie_settings_factory.h" | 14 #include "chrome/browser/content_settings/cookie_settings_factory.h" |
15 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 15 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
17 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" | 17 #include "chrome/browser/custom_handlers/protocol_handler_registry.h" |
18 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" | 18 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" |
19 #include "chrome/browser/infobars/infobar_service.h" | 19 #include "chrome/browser/infobars/infobar_service.h" |
20 #include "chrome/browser/media/media_capture_devices_dispatcher.h" | 20 #include "chrome/browser/media/media_capture_devices_dispatcher.h" |
21 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" | 21 #include "chrome/browser/plugins/chrome_plugin_service_filter.h" |
22 #include "chrome/browser/profiles/profile.h" | 22 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" | 23 #include "chrome/browser/ui/blocked_content/popup_blocker_tab_helper.h" |
24 #include "chrome/browser/ui/browser_navigator.h" | |
25 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" | 24 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
26 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" | 25 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" |
27 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
28 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
29 #include "chrome/common/render_messages.h" | 28 #include "chrome/common/render_messages.h" |
30 #include "chrome/grit/generated_resources.h" | 29 #include "chrome/grit/generated_resources.h" |
31 #include "components/content_settings/content/common/content_settings_messages.h
" | 30 #include "components/content_settings/content/common/content_settings_messages.h
" |
32 #include "components/content_settings/core/browser/content_settings_utils.h" | 31 #include "components/content_settings/core/browser/content_settings_utils.h" |
33 #include "components/content_settings/core/browser/cookie_settings.h" | 32 #include "components/content_settings/core/browser/cookie_settings.h" |
34 #include "components/content_settings/core/common/content_settings.h" | 33 #include "components/content_settings/core/common/content_settings.h" |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1380 if (type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED) { | 1379 if (type == content::NOTIFICATION_WEB_CONTENTS_DESTROYED) { |
1381 DCHECK_EQ(web_contents_, | 1380 DCHECK_EQ(web_contents_, |
1382 content::Source<WebContents>(source).ptr()); | 1381 content::Source<WebContents>(source).ptr()); |
1383 web_contents_ = NULL; | 1382 web_contents_ = NULL; |
1384 } else { | 1383 } else { |
1385 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); | 1384 DCHECK_EQ(chrome::NOTIFICATION_PROFILE_DESTROYED, type); |
1386 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); | 1385 DCHECK_EQ(profile_, content::Source<Profile>(source).ptr()); |
1387 profile_ = NULL; | 1386 profile_ = NULL; |
1388 } | 1387 } |
1389 } | 1388 } |
OLD | NEW |