| 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 #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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |