| 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/views/collected_cookies_views.h" | 5 #include "chrome/browser/ui/views/collected_cookies_views.h" |
| 6 | 6 |
| 7 #include "chrome/browser/api/infobars/infobar_tab_helper.h" |
| 7 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" | 8 #include "chrome/browser/browsing_data/browsing_data_appcache_helper.h" |
| 8 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" | 9 #include "chrome/browser/browsing_data/browsing_data_cookie_helper.h" |
| 9 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" | 10 #include "chrome/browser/browsing_data/browsing_data_database_helper.h" |
| 10 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" | 11 #include "chrome/browser/browsing_data/browsing_data_file_system_helper.h" |
| 11 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" | 12 #include "chrome/browser/browsing_data/browsing_data_indexed_db_helper.h" |
| 12 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" | 13 #include "chrome/browser/browsing_data/browsing_data_local_storage_helper.h" |
| 13 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" | 14 #include "chrome/browser/browsing_data/browsing_data_server_bound_cert_helper.h" |
| 14 #include "chrome/browser/content_settings/cookie_settings.h" | 15 #include "chrome/browser/content_settings/cookie_settings.h" |
| 15 #include "chrome/browser/content_settings/local_shared_objects_container.h" | 16 #include "chrome/browser/content_settings/local_shared_objects_container.h" |
| 16 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 17 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
| 17 #include "chrome/browser/cookies_tree_model.h" | 18 #include "chrome/browser/cookies_tree_model.h" |
| 18 #include "chrome/browser/infobars/infobar_tab_helper.h" | |
| 19 #include "chrome/browser/prefs/pref_service.h" | 19 #include "chrome/browser/prefs/pref_service.h" |
| 20 #include "chrome/browser/profiles/profile.h" | 20 #include "chrome/browser/profiles/profile.h" |
| 21 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" | 21 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
| 22 #include "chrome/browser/ui/constrained_window.h" | 22 #include "chrome/browser/ui/constrained_window.h" |
| 23 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 23 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 24 #include "chrome/browser/ui/views/constrained_window_views.h" | 24 #include "chrome/browser/ui/views/constrained_window_views.h" |
| 25 #include "chrome/browser/ui/views/cookie_info_view.h" | 25 #include "chrome/browser/ui/views/cookie_info_view.h" |
| 26 #include "chrome/common/chrome_notification_types.h" | 26 #include "chrome/common/chrome_notification_types.h" |
| 27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
| 28 #include "content/public/browser/notification_details.h" | 28 #include "content/public/browser/notification_details.h" |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 /////////////////////////////////////////////////////////////////////////////// | 515 /////////////////////////////////////////////////////////////////////////////// |
| 516 // CollectedCookiesViews, content::NotificationObserver implementation: | 516 // CollectedCookiesViews, content::NotificationObserver implementation: |
| 517 | 517 |
| 518 void CollectedCookiesViews::Observe( | 518 void CollectedCookiesViews::Observe( |
| 519 int type, | 519 int type, |
| 520 const content::NotificationSource& source, | 520 const content::NotificationSource& source, |
| 521 const content::NotificationDetails& details) { | 521 const content::NotificationDetails& details) { |
| 522 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); | 522 DCHECK(type == chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN); |
| 523 window_->CloseConstrainedWindow(); | 523 window_->CloseConstrainedWindow(); |
| 524 } | 524 } |
| OLD | NEW |