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

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

Issue 9379016: (WIP) Website Settings GTK UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tmp 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
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.cc ('k') | chrome/browser/website_settings_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/website_settings_popup.h
diff --git a/chrome/browser/ui/website_settings_popup.h b/chrome/browser/ui/website_settings_popup.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f45efb0b5cd8c76a547ddd63702d8c255f8a787
--- /dev/null
+++ b/chrome/browser/ui/website_settings_popup.h
@@ -0,0 +1,70 @@
+// 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_POPUP_H_
+#define CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_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;
+
+// Interface for the Website Settings UI
+class WebsiteSettingsUI {
+ public:
+ //
+ struct CookieInfo {
+ std::string text;
+ int allowed;
+ int blocked;
+ };
+
+ //
+ struct PermissionInfo {
+ ContentSettingsType type;
+ ContentSetting setting;
+ };
+
+ // Updates the UI.
+ virtual void Update() = 0;
+
+};
+
+class CookieInfoList : public std::vector<WebsiteSettingsUI::CookieInfo> {
+};
+
+class PermissionInfoList
+ : public std::vector<WebsiteSettingsUI::PermissionInfo> {
+};
+
+class WebsiteSettingsPopup {
+ public:
+ static void Show(gfx::NativeWindow parent,
+ Profile* profile,
+ TabContentsWrapper* tab_contents_wrapper,
+ const GURL& url,
+ const content::SSLStatus& ssl,
+ bool show_history);
+
+ WebsiteSettingsPopup();
+ virtual ~WebsiteSettingsPopup();
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsPopup);
+};
+
+#endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_POPUP_H_
« no previous file with comments | « chrome/browser/ui/gtk/website_settings_popup_gtk.cc ('k') | chrome/browser/website_settings_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698