| 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 // 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_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 7 #ifndef CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
| 8 #define CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 8 #define CHROME_BROWSER_UI_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 "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" | 15 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" |
| 16 #include "chrome/browser/ui/gtk/gtk_tree.h" | 16 #include "chrome/browser/ui/gtk/gtk_tree.h" |
| 17 #include "chrome/common/content_settings.h" | 17 #include "chrome/common/content_settings.h" |
| 18 #include "content/public/browser/notification_observer.h" | 18 #include "content/public/browser/notification_observer.h" |
| 19 #include "content/public/browser/notification_registrar.h" | 19 #include "content/public/browser/notification_registrar.h" |
| 20 #include "ui/base/gtk/gtk_signal.h" | 20 #include "ui/base/gtk/gtk_signal.h" |
| 21 | 21 |
| 22 class CookiesTreeModel; | 22 class CookiesTreeModel; |
| 23 class TabContentsWrapper; | 23 class TabContents; |
| 24 typedef TabContents TabContentsWrapper; |
| 24 | 25 |
| 25 // CollectedCookiesGtk is a dialog that displays the allowed and blocked | 26 // CollectedCookiesGtk is a dialog that displays the allowed and blocked |
| 26 // cookies of the current tab contents. To display the dialog, invoke | 27 // cookies of the current tab contents. To display the dialog, invoke |
| 27 // ShowCollectedCookiesDialog() on the delegate of the tab contents wrapper's | 28 // ShowCollectedCookiesDialog() on the delegate of the tab contents wrapper's |
| 28 // content settings tab helper. | 29 // content settings tab helper. |
| 29 | 30 |
| 30 class CollectedCookiesGtk : public ConstrainedWindowGtkDelegate, | 31 class CollectedCookiesGtk : public ConstrainedWindowGtkDelegate, |
| 31 public gtk_tree::TreeAdapter::Delegate, | 32 public gtk_tree::TreeAdapter::Delegate, |
| 32 public content::NotificationObserver { | 33 public content::NotificationObserver { |
| 33 public: | 34 public: |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // The Cookies Table model. | 123 // The Cookies Table model. |
| 123 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; | 124 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; |
| 124 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; | 125 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; |
| 125 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; | 126 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; |
| 126 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; | 127 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); | 129 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ | 132 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ |
| OLD | NEW |