Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3685)

Unified Diff: chrome/browser/ui/content_settings/content_settings_tab_helper_delegate.h

Issue 6854035: Move blocked content from TabContents to TabContentsWrapper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698