OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This is the Gtk implementation of the collected Cookies dialog. | 5 // This is the Gtk implementation of the collected Cookies dialog. |
6 | 6 |
7 #ifndef CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ | 7 #ifndef CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
8 #define CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ | 8 #define CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
11 #include <gtk/gtk.h> | 11 #include <gtk/gtk.h> |
12 | 12 |
13 #include "app/gtk_signal.h" | 13 #include "app/gtk_signal.h" |
14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
15 #include "chrome/browser/gtk/constrained_window_gtk.h" | 15 #include "chrome/browser/gtk/constrained_window_gtk.h" |
16 #include "chrome/browser/gtk/gtk_tree.h" | 16 #include "chrome/browser/gtk/gtk_tree.h" |
17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
| 18 #include "chrome/common/notification_observer.h" |
18 #include "chrome/common/notification_registrar.h" | 19 #include "chrome/common/notification_registrar.h" |
19 | 20 |
20 class CookiesTreeModel; | 21 class CookiesTreeModel; |
21 | 22 |
22 // CollectedCookiesGtk is a dialog that displays the allowed and blocked | 23 // CollectedCookiesGtk is a dialog that displays the allowed and blocked |
23 // cookies of the current tab contents. To display the dialog, invoke | 24 // cookies of the current tab contents. To display the dialog, invoke |
24 // ShowCollectedCookiesDialog() on the delegate of the tab contents. | 25 // ShowCollectedCookiesDialog() on the delegate of the tab contents. |
25 | 26 |
26 class CollectedCookiesGtk : public ConstrainedDialogDelegate, | 27 class CollectedCookiesGtk : public ConstrainedDialogDelegate, |
27 gtk_tree::TreeAdapter::Delegate, | 28 gtk_tree::TreeAdapter::Delegate, |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // The Cookies Table model. | 95 // The Cookies Table model. |
95 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 96 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
96 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 97 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
97 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; | 98 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; |
98 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; | 99 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; |
99 | 100 |
100 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); | 101 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); |
101 }; | 102 }; |
102 | 103 |
103 #endif // CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ | 104 #endif // CHROME_BROWSER_GTK_COLLECTED_COOKIES_GTK_H_ |
OLD | NEW |