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

Side by Side Diff: chrome/browser/ui/content_settings/content_setting_bubble_model.cc

Issue 7831051: content: Move collected cookies constrained window to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile failures for everyone\! 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/content_settings/content_setting_bubble_model.h" 5 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 } 324 }
325 325
326 private: 326 private:
327 virtual void OnCustomLinkClicked() OVERRIDE { 327 virtual void OnCustomLinkClicked() OVERRIDE {
328 if (!tab_contents()) 328 if (!tab_contents())
329 return; 329 return;
330 NotificationService::current()->Notify( 330 NotificationService::current()->Notify(
331 chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN, 331 chrome::NOTIFICATION_COLLECTED_COOKIES_SHOWN,
332 Source<TabSpecificContentSettings>(tab_contents()->content_settings()), 332 Source<TabSpecificContentSettings>(tab_contents()->content_settings()),
333 NotificationService::NoDetails()); 333 NotificationService::NoDetails());
334 browser()->ShowCollectedCookiesDialog(tab_contents()->tab_contents()); 334 browser()->ShowCollectedCookiesDialog(tab_contents());
335 } 335 }
336 }; 336 };
337 337
338 class ContentSettingPluginBubbleModel : public ContentSettingSingleRadioGroup { 338 class ContentSettingPluginBubbleModel : public ContentSettingSingleRadioGroup {
339 public: 339 public:
340 ContentSettingPluginBubbleModel(Browser* browser, 340 ContentSettingPluginBubbleModel(Browser* browser,
341 TabContentsWrapper* tab_contents, 341 TabContentsWrapper* tab_contents,
342 Profile* profile, 342 Profile* profile,
343 ContentSettingsType content_type) 343 ContentSettingsType content_type)
344 : ContentSettingSingleRadioGroup( 344 : ContentSettingSingleRadioGroup(
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
550 tab_contents_ = NULL; 550 tab_contents_ = NULL;
551 break; 551 break;
552 case chrome::NOTIFICATION_PROFILE_DESTROYED: 552 case chrome::NOTIFICATION_PROFILE_DESTROYED:
553 DCHECK(source == Source<Profile>(profile_)); 553 DCHECK(source == Source<Profile>(profile_));
554 profile_ = NULL; 554 profile_ = NULL;
555 break; 555 break;
556 default: 556 default:
557 NOTREACHED(); 557 NOTREACHED();
558 } 558 }
559 } 559 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/content_settings/collected_cookies_mac_unittest.mm ('k') | chrome/browser/ui/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698