OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_win.h" | 5 #include "chrome/browser/ui/views/collected_cookies_win.h" |
6 | 6 |
| 7 #include "chrome/browser/content_settings/host_content_settings_map.h" |
7 #include "chrome/browser/cookies_tree_model.h" | 8 #include "chrome/browser/cookies_tree_model.h" |
8 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
9 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" | 10 #include "chrome/browser/ui/collected_cookies_infobar_delegate.h" |
10 #include "chrome/browser/ui/views/cookie_info_view.h" | 11 #include "chrome/browser/ui/views/cookie_info_view.h" |
11 #include "content/browser/tab_contents/tab_contents.h" | 12 #include "content/browser/tab_contents/tab_contents.h" |
12 #include "content/common/notification_details.h" | 13 #include "content/common/notification_details.h" |
13 #include "content/common/notification_source.h" | 14 #include "content/common/notification_source.h" |
14 #include "grit/generated_resources.h" | 15 #include "grit/generated_resources.h" |
15 #include "grit/locale_settings.h" | 16 #include "grit/locale_settings.h" |
16 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
490 // NotificationObserver implementation. | 491 // NotificationObserver implementation. |
491 | 492 |
492 void CollectedCookiesWin::Observe(NotificationType type, | 493 void CollectedCookiesWin::Observe(NotificationType type, |
493 const NotificationSource& source, | 494 const NotificationSource& source, |
494 const NotificationDetails& details) { | 495 const NotificationDetails& details) { |
495 DCHECK(type == NotificationType::COLLECTED_COOKIES_SHOWN); | 496 DCHECK(type == NotificationType::COLLECTED_COOKIES_SHOWN); |
496 DCHECK_EQ(Source<TabSpecificContentSettings>(source).ptr(), | 497 DCHECK_EQ(Source<TabSpecificContentSettings>(source).ptr(), |
497 tab_contents_->GetTabSpecificContentSettings()); | 498 tab_contents_->GetTabSpecificContentSettings()); |
498 window_->CloseConstrainedWindow(); | 499 window_->CloseConstrainedWindow(); |
499 } | 500 } |
OLD | NEW |