OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/compiler_specific.h" |
| 11 #include "chrome/browser/ui/content_settings/content_setting_bubble_model.h" |
| 12 |
| 13 class Browser; |
| 14 |
| 15 // Implementation of ContentSettingBubbleModelDelegate which uses an instance of |
| 16 // Browser in order to fulfil its duties. |
| 17 class BrowserContentSettingBubbleModelDelegate |
| 18 : public ContentSettingBubbleModelDelegate { |
| 19 public: |
| 20 explicit BrowserContentSettingBubbleModelDelegate(Browser* browser); |
| 21 virtual ~BrowserContentSettingBubbleModelDelegate(); |
| 22 |
| 23 // ContentSettingBubbleModelDelegate implementation: |
| 24 virtual void ShowCollectedCookiesDialog( |
| 25 TabContentsWrapper* contents) OVERRIDE; |
| 26 virtual void ShowContentSettingsPage(ContentSettingsType type) OVERRIDE; |
| 27 |
| 28 private: |
| 29 Browser* browser_; |
| 30 |
| 31 DISALLOW_COPY_AND_ASSIGN(BrowserContentSettingBubbleModelDelegate); |
| 32 }; |
| 33 |
| 34 #endif // CHROME_BROWSER_UI_BROWSER_CONTENT_SETTING_BUBBLE_MODEL_DELEGATE_H_ |
OLD | NEW |