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

Unified Diff: chrome/browser/ui/gtk/collected_cookies_gtk.cc

Issue 10545115: TabContentsWrapper -> TabContents, part 41. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/collected_cookies_gtk.cc
diff --git a/chrome/browser/ui/gtk/collected_cookies_gtk.cc b/chrome/browser/ui/gtk/collected_cookies_gtk.cc
index 0b1d209183c8ae03a961020c95e59ddc8aec431a..4a629e78503d2d17a7af00451a56a22c41544f51 100644
--- a/chrome/browser/ui/gtk/collected_cookies_gtk.cc
+++ b/chrome/browser/ui/gtk/collected_cookies_gtk.cc
@@ -24,7 +24,7 @@
#include "chrome/browser/ui/gtk/constrained_window_gtk.h"
#include "chrome/browser/ui/gtk/gtk_chrome_cookie_view.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
-#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
+#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/pref_names.h"
#include "content/public/browser/notification_source.h"
@@ -94,20 +94,20 @@ namespace browser {
// Declared in browser_dialogs.h so others don't have to depend on our header.
void ShowCollectedCookiesDialog(gfx::NativeWindow parent_window,
- TabContentsWrapper* wrapper) {
+ TabContents* tab_contents) {
// Deletes itself on close.
- new CollectedCookiesGtk(parent_window, wrapper);
+ new CollectedCookiesGtk(parent_window, tab_contents);
}
} // namespace browser
CollectedCookiesGtk::CollectedCookiesGtk(GtkWindow* parent,
- TabContentsWrapper* wrapper)
- : wrapper_(wrapper),
+ TabContents* tab_contents)
+ : tab_contents_(tab_contents),
status_changed_(false) {
registrar_.Add(this, chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
content::Source<TabSpecificContentSettings>(
- wrapper->content_settings()));
+ tab_contents->content_settings()));
Init();
}
@@ -184,7 +184,7 @@ void CollectedCookiesGtk::Init() {
blocked_cookies_tree_adapter_->Init();
EnableControls();
ShowCookieInfo(gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook_)));
- window_ = new ConstrainedWindowGtk(wrapper_, this);
+ window_ = new ConstrainedWindowGtk(tab_contents_, this);
}
GtkWidget* CollectedCookiesGtk::CreateAllowedPane() {
@@ -205,7 +205,8 @@ GtkWidget* CollectedCookiesGtk::CreateAllowedPane() {
GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start(GTK_BOX(cookie_list_vbox), scroll_window, TRUE, TRUE, 0);
- TabSpecificContentSettings* content_settings = wrapper_->content_settings();
+ TabSpecificContentSettings* content_settings =
+ tab_contents_->content_settings();
const LocalSharedObjectsContainer& allowed_lsos =
content_settings->allowed_local_shared_objects();
@@ -270,7 +271,7 @@ GtkWidget* CollectedCookiesGtk::CreateAllowedPane() {
}
GtkWidget* CollectedCookiesGtk::CreateBlockedPane() {
- PrefService* prefs = wrapper_->profile()->GetPrefs();
+ PrefService* prefs = tab_contents_->profile()->GetPrefs();
GtkWidget* cookie_list_vbox = gtk_vbox_new(FALSE, ui::kControlSpacing);
@@ -293,7 +294,8 @@ GtkWidget* CollectedCookiesGtk::CreateBlockedPane() {
GTK_SHADOW_ETCHED_IN);
gtk_box_pack_start(GTK_BOX(cookie_list_vbox), scroll_window, TRUE, TRUE, 0);
- TabSpecificContentSettings* content_settings = wrapper_->content_settings();
+ TabSpecificContentSettings* content_settings =
+ tab_contents_->content_settings();
const LocalSharedObjectsContainer& blocked_lsos =
content_settings->blocked_local_shared_objects();
@@ -470,7 +472,7 @@ void CollectedCookiesGtk::Observe(int type,
void CollectedCookiesGtk::OnClose(GtkWidget* close_button) {
if (status_changed_) {
- InfoBarTabHelper* infobar_helper = wrapper_->infobar_tab_helper();
+ InfoBarTabHelper* infobar_helper = tab_contents_->infobar_tab_helper();
infobar_helper->AddInfoBar(
new CollectedCookiesInfoBarDelegate(infobar_helper));
}
@@ -500,7 +502,7 @@ void CollectedCookiesGtk::AddExceptions(GtkTreeSelection* selection,
if (!last_domain_name.empty())
multiple_domains_added = true;
last_domain_name = origin_node->GetTitle();
- Profile* profile = wrapper_->profile();
+ Profile* profile = tab_contents_->profile();
origin_node->CreateContentException(
CookieSettings::Factory::GetForProfile(profile), setting);
}
« no previous file with comments | « chrome/browser/ui/gtk/collected_cookies_gtk.h ('k') | chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698