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

Unified Diff: chrome/browser/website_settings_model.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/website_settings_popup.h ('k') | chrome/browser/website_settings_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/website_settings_model.h
diff --git a/chrome/browser/website_settings_model.h b/chrome/browser/website_settings_model.h
index bac3d1987647e78b1d1050e272fa46ca2da8cf36..f437af36cbe43e7b80088d73ccab552be8ba903a 100644
--- a/chrome/browser/website_settings_model.h
+++ b/chrome/browser/website_settings_model.h
@@ -8,18 +8,32 @@
#include "base/string16.h"
#include "googleurl/src/gurl.h"
+// ---
+
+#include "chrome/browser/browsing_data_cookie_helper.h"
+#include "chrome/browser/browsing_data_appcache_helper.h"
+#include "chrome/browser/browsing_data_database_helper.h"
+#include "chrome/browser/browsing_data_file_system_helper.h"
+#include "chrome/browser/browsing_data_indexed_db_helper.h"
+#include "chrome/browser/browsing_data_local_storage_helper.h"
+#include "chrome/browser/ui/website_settings_popup.h"
+#include "net/cookies/cookie_monster.h"
+
namespace content {
class CertStore;
struct SSLStatus;
}
+class HostContentSettingsMap;
class Profile;
+class SiteData;
class TabContentsWrapper;
+class TabSpecificContentSettings;
// The |WebsiteSettingsModel| provides information about the connection and the
// identity of a website. The |WebsiteSettingsModel| is the backend for the
// WebsiteSettingsUI which displays this information.
-class WebsiteSettingsModel {
+class WebsiteSettingsModel {
public:
// Status of a connection to a website.
enum SiteConnectionStatus {
@@ -55,13 +69,19 @@ class WebsiteSettingsModel {
// Creates a WebsiteSettingsModel for the passed |url| using the given |ssl|
// status object to determine the status of the site's connection.
- WebsiteSettingsModel(Profile* profile,
+ WebsiteSettingsModel(WebsiteSettingsUI* ui,
+ Profile* profile,
const GURL& url,
const content::SSLStatus& ssl,
- content::CertStore* cert_store);
+ content::CertStore* cert_store,
+ TabSpecificContentSettings* content_settings);
virtual ~WebsiteSettingsModel();
+ void GetCookieInfos(CookieInfoList* cookie_info_list);
+
+ void GetPermissionInfos(PermissionInfoList* permission_info_list);
+
// Accessors.
SiteConnectionStatus site_connection_status() const {
return site_connection_status_;
@@ -83,12 +103,18 @@ class WebsiteSettingsModel {
return organization_name_;
}
+ void OnLocalSharedObjectsUpdated();
+
private:
// Initializes the |WebsiteSettingsModel|.
void Init(Profile* profile,
const GURL& url,
const content::SSLStatus& ssl);
+ WebsiteSettingsUI* ui_; // Weak pointer. This class is owned by the UI.
+
+ GURL site_url_;
+
// Status of the website's identity verification check.
SiteIdentityStatus site_identity_status_;
@@ -112,6 +138,10 @@ class WebsiteSettingsModel {
// The |CertStore| provides all X509Certificates.
content::CertStore* cert_store_;
+ scoped_ptr<SiteData> site_data_;
+
+ HostContentSettingsMap* content_settings_;
+
DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsModel);
};
« no previous file with comments | « chrome/browser/ui/website_settings_popup.h ('k') | chrome/browser/website_settings_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698