Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1735)

Side by Side Diff: chrome/browser/ui/gtk/collected_cookies_gtk.h

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/ui/gtk/constrained_window_gtk.h" 14 #include "chrome/browser/ui/gtk/constrained_window_gtk.h"
15 #include "chrome/browser/ui/gtk/gtk_tree.h" 15 #include "chrome/browser/ui/gtk/gtk_tree.h"
16 #include "chrome/common/content_settings.h" 16 #include "chrome/common/content_settings.h"
17 #include "content/common/notification_observer.h" 17 #include "content/common/notification_observer.h"
18 #include "content/common/notification_registrar.h" 18 #include "content/common/notification_registrar.h"
19 #include "ui/base/gtk/gtk_signal.h" 19 #include "ui/base/gtk/gtk_signal.h"
20 20
21 class CookiesTreeModel; 21 class CookiesTreeModel;
22 22
23 // CollectedCookiesGtk is a dialog that displays the allowed and blocked 23 // CollectedCookiesGtk is a dialog that displays the allowed and blocked
24 // cookies of the current tab contents. To display the dialog, invoke 24 // cookies of the current tab contents. To display the dialog, invoke
25 // ShowCollectedCookiesDialog() on the delegate of the tab contents. 25 // ShowCollectedCookiesDialog() on the delegate of the tab contents wrapper's
26 // content settings tab helper.
26 27
27 class CollectedCookiesGtk : public ConstrainedDialogDelegate, 28 class CollectedCookiesGtk : public ConstrainedDialogDelegate,
28 gtk_tree::TreeAdapter::Delegate, 29 gtk_tree::TreeAdapter::Delegate,
29 NotificationObserver { 30 NotificationObserver {
30 public: 31 public:
31 CollectedCookiesGtk(GtkWindow* parent, TabContents* tab_contents); 32 CollectedCookiesGtk(GtkWindow* parent, TabContents* tab_contents);
32 33
33 // ConstrainedDialogDelegate methods. 34 // ConstrainedDialogDelegate methods.
34 virtual GtkWidget* GetWidgetRoot(); 35 virtual GtkWidget* GetWidgetRoot();
35 virtual GtkWidget* GetFocusWidget(); 36 virtual GtkWidget* GetFocusWidget();
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // The Cookies Table model. 120 // The Cookies Table model.
120 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_; 121 scoped_ptr<CookiesTreeModel> allowed_cookies_tree_model_;
121 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_; 122 scoped_ptr<CookiesTreeModel> blocked_cookies_tree_model_;
122 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_; 123 scoped_ptr<gtk_tree::TreeAdapter> allowed_cookies_tree_adapter_;
123 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_; 124 scoped_ptr<gtk_tree::TreeAdapter> blocked_cookies_tree_adapter_;
124 125
125 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk); 126 DISALLOW_COPY_AND_ASSIGN(CollectedCookiesGtk);
126 }; 127 };
127 128
128 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_ 129 #endif // CHROME_BROWSER_UI_GTK_COLLECTED_COOKIES_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698