| 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 "chrome/common/content_settings.h" | 9 #include "chrome/common/content_settings.h" |
| 10 #include "content/public/browser/notification_observer.h" | 10 #include "content/public/browser/notification_observer.h" |
| 11 #include "content/public/browser/notification_registrar.h" | 11 #include "content/public/browser/notification_registrar.h" |
| 12 #include "ui/views/controls/button/button.h" | 12 #include "ui/views/controls/button/button.h" |
| 13 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" | 13 #include "ui/views/controls/tabbed_pane/tabbed_pane_listener.h" |
| 14 #include "ui/views/controls/tree/tree_view_controller.h" | 14 #include "ui/views/controls/tree/tree_view_controller.h" |
| 15 #include "ui/views/window/dialog_delegate.h" | 15 #include "ui/views/window/dialog_delegate.h" |
| 16 | 16 |
| 17 class ConstrainedWindow; | 17 class WebContentsModalDialog; |
| 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; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 void AddContentException(views::TreeView* tree_view, ContentSetting setting); | 84 void AddContentException(views::TreeView* tree_view, ContentSetting setting); |
| 85 | 85 |
| 86 // content::NotificationObserver: | 86 // content::NotificationObserver: |
| 87 virtual void Observe(int type, | 87 virtual void Observe(int type, |
| 88 const content::NotificationSource& source, | 88 const content::NotificationSource& source, |
| 89 const content::NotificationDetails& details) OVERRIDE; | 89 const content::NotificationDetails& details) OVERRIDE; |
| 90 | 90 |
| 91 content::NotificationRegistrar registrar_; | 91 content::NotificationRegistrar registrar_; |
| 92 | 92 |
| 93 ConstrainedWindow* window_; | 93 WebContentsModalDialog* window_; |
| 94 | 94 |
| 95 // The web contents. | 95 // The web contents. |
| 96 content::WebContents* web_contents_; | 96 content::WebContents* web_contents_; |
| 97 | 97 |
| 98 // Assorted views. | 98 // Assorted views. |
| 99 views::Label* allowed_label_; | 99 views::Label* allowed_label_; |
| 100 views::Label* blocked_label_; | 100 views::Label* blocked_label_; |
| 101 | 101 |
| 102 views::TreeView* allowed_cookies_tree_; | 102 views::TreeView* allowed_cookies_tree_; |
| 103 views::TreeView* blocked_cookies_tree_; | 103 views::TreeView* blocked_cookies_tree_; |
| 104 | 104 |
| 105 views::TextButton* block_allowed_button_; | 105 views::TextButton* block_allowed_button_; |
| 106 views::TextButton* allow_blocked_button_; | 106 views::TextButton* allow_blocked_button_; |
| 107 views::TextButton* for_session_blocked_button_; | 107 views::TextButton* for_session_blocked_button_; |
| 108 | 108 |
| 109 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 109 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
| 110 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 110 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
| 111 | 111 |
| 112 CookieInfoView* cookie_info_view_; | 112 CookieInfoView* cookie_info_view_; |
| 113 | 113 |
| 114 InfobarView* infobar_; | 114 InfobarView* infobar_; |
| 115 | 115 |
| 116 bool status_changed_; | 116 bool status_changed_; |
| 117 | 117 |
| 118 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); | 118 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesViews); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ | 121 #endif // CHROME_BROWSER_UI_VIEWS_COLLECTED_COOKIES_VIEWS_H_ |
| OLD | NEW |