Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGATE_ H_ | |
| 6 #define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGATE_ H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include "chrome/common/content_settings_types.h" | |
| 10 | |
| 11 class TabContents; | |
| 12 class TabContentsWrapper; | |
| 13 | |
| 14 // Objects implement this interface to get notified about changes in the | |
| 15 // ContentSettingsTabHelper and to provide necessary functionality. | |
|
jochen (gone - plz use gerrit)
2011/04/14 23:11:04
this delegate seems to be unrelated to the popup b
Avi (use Gerrit)
2011/04/15 00:20:12
The GetConstrainingContents does belong as a deleg
| |
| 16 class ContentSettingsTabHelperDelegate { | |
| 17 public: | |
| 18 // If |source| is constrained, returns the tab containing it. Otherwise | |
| 19 // returns |source|. | |
| 20 virtual TabContentsWrapper* GetConstrainingContents( | |
| 21 TabContentsWrapper* source) = 0; | |
| 22 | |
| 23 // Shows the Content Settings page for a given content type. | |
| 24 virtual void ShowContentSettingsPage(ContentSettingsType content_type) = 0; | |
| 25 | |
| 26 // Shows the cookies collected in the tab contents. | |
| 27 virtual void ShowCollectedCookiesDialog(TabContents* tab_contents) = 0; | |
| 28 | |
| 29 protected: | |
| 30 virtual ~ContentSettingsTabHelperDelegate(); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGA TE_H_ | |
| OLD | NEW |