Chromium Code Reviews| Index: chrome/browser/ui/content_settings/content_settings_tab_helper_delegate.h |
| diff --git a/chrome/browser/ui/content_settings/content_settings_tab_helper_delegate.h b/chrome/browser/ui/content_settings/content_settings_tab_helper_delegate.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..690de308e7221d1e2e71d8a93713895a13acc706 |
| --- /dev/null |
| +++ b/chrome/browser/ui/content_settings/content_settings_tab_helper_delegate.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGATE_H_ |
| +#define CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGATE_H_ |
| +#pragma once |
| + |
| +#include "chrome/common/content_settings_types.h" |
| + |
| +class TabContents; |
| +class TabContentsWrapper; |
| + |
| +// Objects implement this interface to get notified about changes in the |
| +// 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
|
| +class ContentSettingsTabHelperDelegate { |
| + public: |
| + // If |source| is constrained, returns the tab containing it. Otherwise |
| + // returns |source|. |
| + virtual TabContentsWrapper* GetConstrainingContents( |
| + TabContentsWrapper* source) = 0; |
| + |
| + // Shows the Content Settings page for a given content type. |
| + virtual void ShowContentSettingsPage(ContentSettingsType content_type) = 0; |
| + |
| + // Shows the cookies collected in the tab contents. |
| + virtual void ShowCollectedCookiesDialog(TabContents* tab_contents) = 0; |
| + |
| + protected: |
| + virtual ~ContentSettingsTabHelperDelegate(); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_CONTENT_SETTINGS_CONTENT_SETTINGS_TAB_HELPER_DELEGATE_H_ |