| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" | 10 #include "chrome/browser/ui/content_settings/content_setting_bubble_model_delega
te.h" |
| 11 | 11 |
| 12 class Browser; | 12 class Browser; |
| 13 | 13 |
| 14 // Implementation of ContentSettingBubbleModelDelegate which uses an instance of | 14 // Implementation of ContentSettingBubbleModelDelegate which uses an instance of |
| 15 // Browser in order to fulfil its duties. | 15 // Browser in order to fulfil its duties. |
| 16 class BrowserContentSettingBubbleModelDelegate | 16 class BrowserContentSettingBubbleModelDelegate |
| 17 : public ContentSettingBubbleModelDelegate { | 17 : public ContentSettingBubbleModelDelegate { |
| 18 public: | 18 public: |
| 19 explicit BrowserContentSettingBubbleModelDelegate(Browser* browser); | 19 explicit BrowserContentSettingBubbleModelDelegate(Browser* browser); |
| 20 virtual ~BrowserContentSettingBubbleModelDelegate(); | 20 virtual ~BrowserContentSettingBubbleModelDelegate(); |
| 21 | 21 |
| 22 // ContentSettingBubbleModelDelegate implementation: | 22 // ContentSettingBubbleModelDelegate implementation: |
| 23 virtual void ShowCollectedCookiesDialog( | 23 virtual void ShowCollectedCookiesDialog( |
| 24 content::WebContents* web_contents) OVERRIDE; | 24 content::WebContents* web_contents) override; |
| 25 virtual void ShowContentSettingsPage(ContentSettingsType type) OVERRIDE; | 25 virtual void ShowContentSettingsPage(ContentSettingsType type) override; |
| 26 virtual void ShowLearnMorePage(ContentSettingsType type) OVERRIDE; | 26 virtual void ShowLearnMorePage(ContentSettingsType type) override; |
| 27 | 27 |
| 28 private: | 28 private: |
| 29 Browser* browser_; | 29 Browser* browser_; |
| 30 | 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(BrowserContentSettingBubbleModelDelegate); | 31 DISALLOW_COPY_AND_ASSIGN(BrowserContentSettingBubbleModelDelegate); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 #endif // CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ | 34 #endif // CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
| OLD | NEW |