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

Side by Side Diff: chrome/browser/ui/webui/collected_cookies_ui_delegate.cc

Issue 7867007: content: Resubmit "Move constrained html windows to TabContentsWrapper." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h" 5 #include "chrome/browser/ui/webui/collected_cookies_ui_delegate.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/content_settings/host_content_settings_map.h" 10 #include "chrome/browser/content_settings/host_content_settings_map.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 139
140 } // namespace browser 140 } // namespace browser
141 141
142 // static 142 // static
143 void CollectedCookiesUIDelegate::Show(TabContentsWrapper* wrapper) { 143 void CollectedCookiesUIDelegate::Show(TabContentsWrapper* wrapper) {
144 CollectedCookiesUIDelegate* delegate = 144 CollectedCookiesUIDelegate* delegate =
145 new CollectedCookiesUIDelegate(wrapper); 145 new CollectedCookiesUIDelegate(wrapper);
146 Profile* profile = wrapper->profile(); 146 Profile* profile = wrapper->profile();
147 ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile, 147 ConstrainedHtmlUI::CreateConstrainedHtmlDialog(profile,
148 delegate, 148 delegate,
149 wrapper->tab_contents()); 149 wrapper);
150 } 150 }
151 151
152 CollectedCookiesUIDelegate::CollectedCookiesUIDelegate( 152 CollectedCookiesUIDelegate::CollectedCookiesUIDelegate(
153 TabContentsWrapper* wrapper) 153 TabContentsWrapper* wrapper)
154 : wrapper_(wrapper), 154 : wrapper_(wrapper),
155 closed_(false) { 155 closed_(false) {
156 TabSpecificContentSettings* content_settings = wrapper->content_settings(); 156 TabSpecificContentSettings* content_settings = wrapper->content_settings();
157 HostContentSettingsMap* host_content_settings_map = 157 HostContentSettingsMap* host_content_settings_map =
158 wrapper->profile()->GetHostContentSettingsMap(); 158 wrapper->profile()->GetHostContentSettingsMap();
159 159
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 if (!args->GetString(0, &node_path)) 289 if (!args->GetString(0, &node_path))
290 return; 290 return;
291 291
292 CookieTreeOriginNode* origin_node = GetOriginNode( 292 CookieTreeOriginNode* origin_node = GetOriginNode(
293 blocked_cookies_tree_model_.get(), node_path); 293 blocked_cookies_tree_model_.get(), node_path);
294 if (!origin_node) 294 if (!origin_node)
295 return; 295 return;
296 296
297 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY); 297 AddContentException(origin_node, CONTENT_SETTING_SESSION_ONLY);
298 } 298 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/constrained_html_delegate_views.cc ('k') | chrome/browser/ui/webui/constrained_html_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698