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 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "components/content_settings/core/common/content_settings.h" | 10 #include "components/content_settings/core/common/content_settings.h" |
11 #include "content/public/browser/notification_observer.h" | 11 #include "content/public/browser/notification_observer.h" |
12 #include "content/public/browser/notification_registrar.h" | 12 #include "content/public/browser/notification_registrar.h" |
13 #include "ui/views/controls/button/button.h" | 13 #include "ui/views/controls/button/button.h" |
14 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" | 14 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" |
15 #include "ui/views/controls/tree/tree_view_controller.h" | 15 #include "ui/views/controls/tree/tree_view_controller.h" |
16 #include "ui/views/window/dialog_delegate.h" | 16 #include "ui/views/window/dialog_delegate.h" |
17 | 17 |
18 class CookieInfoView; | 18 class CookieInfoView; |
19 class CookiesTreeModel; | 19 class CookiesTreeModel; |
20 class InfobarView; | 20 class InfobarView; |
21 | 21 |
22 namespace content { | 22 namespace content { |
23 class WebContents; | 23 class WebContents; |
24 } | 24 } |
25 | 25 |
26 namespace views { | 26 namespace views { |
27 class Label; | 27 class Label; |
28 class LabelButton; | 28 class LabelButton; |
29 class TreeView; | 29 class TreeView; |
30 class Widget; | |
31 } | 30 } |
32 | 31 |
33 // This is the Views implementation of the collected cookies dialog. | 32 // This is the Views implementation of the collected cookies dialog. |
34 // | 33 // |
35 // CollectedCookiesViews is a dialog that displays the allowed and blocked | 34 // CollectedCookiesViews is a dialog that displays the allowed and blocked |
36 // cookies of the current tab contents. To display the dialog, invoke | 35 // cookies of the current tab contents. To display the dialog, invoke |
37 // ShowCollectedCookiesDialog() on the delegate of the WebContents's | 36 // ShowCollectedCookiesDialog() on the delegate of the WebContents's |
38 // content settings tab helper. | 37 // content settings tab helper. |
39 class CollectedCookiesViews : public views::DialogDelegateView, | 38 class CollectedCookiesViews : public views::DialogDelegateView, |
40 public content::NotificationObserver, | 39 public content::NotificationObserver, |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 CookieInfoView* cookie_info_view_; | 114 CookieInfoView* cookie_info_view_; |
116 | 115 |
117 InfobarView* infobar_; | 116 InfobarView* infobar_; |
118 | 117 |
119 bool status_changed_; | 118 bool status_changed_; |
120 | 119 |
121 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); | 120 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); |
122 }; | 121 }; |
123 | 122 |
124 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ | 123 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ |
OLD | NEW |