| 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 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 bool custom_link_enabled; | 74 bool custom_link_enabled; |
| 75 std::string manage_link; | 75 std::string manage_link; |
| 76 | 76 |
| 77 private: | 77 private: |
| 78 DISALLOW_COPY_AND_ASSIGN(BubbleContent); | 78 DISALLOW_COPY_AND_ASSIGN(BubbleContent); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 const BubbleContent& bubble_content() const { return bubble_content_; } | 81 const BubbleContent& bubble_content() const { return bubble_content_; } |
| 82 | 82 |
| 83 // NotificationObserver: | 83 // NotificationObserver: |
| 84 virtual void Observe(NotificationType type, | 84 virtual void Observe(int type, |
| 85 const NotificationSource& source, | 85 const NotificationSource& source, |
| 86 const NotificationDetails& details); | 86 const NotificationDetails& details); |
| 87 | 87 |
| 88 virtual void OnRadioClicked(int radio_index) {} | 88 virtual void OnRadioClicked(int radio_index) {} |
| 89 virtual void OnPopupClicked(int index) {} | 89 virtual void OnPopupClicked(int index) {} |
| 90 virtual void OnCustomLinkClicked() {} | 90 virtual void OnCustomLinkClicked() {} |
| 91 virtual void OnManageLinkClicked() {} | 91 virtual void OnManageLinkClicked() {} |
| 92 | 92 |
| 93 protected: | 93 protected: |
| 94 ContentSettingBubbleModel(TabContentsWrapper* tab_contents, Profile* profile, | 94 ContentSettingBubbleModel(TabContentsWrapper* tab_contents, Profile* profile, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 121 private: | 121 private: |
| 122 TabContentsWrapper* tab_contents_; | 122 TabContentsWrapper* tab_contents_; |
| 123 Profile* profile_; | 123 Profile* profile_; |
| 124 ContentSettingsType content_type_; | 124 ContentSettingsType content_type_; |
| 125 BubbleContent bubble_content_; | 125 BubbleContent bubble_content_; |
| 126 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. | 126 // A registrar for listening for TAB_CONTENTS_DESTROYED notifications. |
| 127 NotificationRegistrar registrar_; | 127 NotificationRegistrar registrar_; |
| 128 }; | 128 }; |
| 129 | 129 |
| 130 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ | 130 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTING_BUBBLE_MODEL_H_ |
| OLD | NEW |