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

Unified Diff: chrome/browser/ui/website_settings_ui.h

Issue 9732007: Add GTK Website Settings UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/website_settings_ui.h
diff --git a/chrome/browser/ui/website_settings_ui.h b/chrome/browser/ui/website_settings_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..b6f3f4bf9519994bd8c2e3ecf57e9b7419997a96
--- /dev/null
+++ b/chrome/browser/ui/website_settings_ui.h
@@ -0,0 +1,76 @@
+// Copyright (c) 2012 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_WEBSITE_SETTINGS_UI_H_
+#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_
+#pragma once
+
+#include <string>
+#include <vector>
+
+#include "chrome/common/content_settings.h"
+#include "chrome/common/content_settings_types.h"
+#include "ui/gfx/native_widget_types.h"
+
+class GURL;
+class Profile;
+class TabContentsWrapper;
+
+namespace content {
+struct SSLStatus;
+}
+
+class CookieInfoList;
+class PermissionInfoList;
+
+// Interface for the Website Settings UI
+class WebsiteSettingsUI {
+ public:
+
+ //
+ struct CookieInfo {
+ std::string text;
+ int allowed;
+ int blocked;
+ };
+
+ //
+ struct PermissionInfo {
+ ContentSettingsType type;
+ ContentSetting setting;
+ };
+
+ // Shows the website settings ui.
+ static void Show(gfx::NativeWindow parent,
+ Profile* profile,
+ TabContentsWrapper* tab_contents_wrapper,
+ const GURL& url,
+ const content::SSLStatus& ssl,
+ bool show_history);
+
+ WebsiteSettingsUI() {}
+ virtual ~WebsiteSettingsUI() {}
+
+ // Sets site information.
+ virtual void SetSiteInfo(const std::string site_info) = 0;
+
+ // Sets cookie information.
+ virtual void SetCookieInfo(const CookieInfoList& cookie_info_list) = 0;
+
+ // Sets permision information.
+ virtual void SetPermissionInfo(
+ const PermissionInfoList& permission_info_list) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsUI);
+};
+
+class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
+};
+
+class PermissionInfoList
+ : public std::vector<WebsiteSettingsUI::PermissionInfo> {
+};
+
+#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_UI_H_

Powered by Google App Engine
This is Rietveld 408576698