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

Unified Diff: chrome/browser/website_settings.h

Issue 9378014: Add website settings backend v 0.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Move cookie related code to another CL. Created 8 years, 10 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 | « no previous file | chrome/browser/website_settings.cc » ('j') | chrome/browser/website_settings.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/website_settings.h
diff --git a/chrome/browser/website_settings.h b/chrome/browser/website_settings.h
new file mode 100644
index 0000000000000000000000000000000000000000..d7a1e35c42a9fb0dc1b95f992b4e174f1830d103
--- /dev/null
+++ b/chrome/browser/website_settings.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_WEBSITE_SETTINGS_H_
+#define CHROME_BROWSER_WEBSITE_SETTINGS_H_
+
+#include "base/memory/scoped_ptr.h"
Finnur 2012/02/14 11:00:36 You need this here?
markusheintz_ 2012/02/14 13:36:55 No that should have been moved to a different CL.
+#include "base/string16.h"
+
+#include "googleurl/src/gurl.h"
+
+namespace content {
+struct SSLStatus;
+}
+
+class Profile;
+class TabContentsWrapper;
+
+class WebsiteSettings {
Finnur 2012/02/14 11:00:36 Isn't this a WebsiteSettingsModel class? Or did yo
Finnur 2012/02/14 11:00:36 This class could do with some documentation (inclu
markusheintz_ 2012/02/14 13:36:55 I omitted the "Model" bc I think this will be more
markusheintz_ 2012/02/14 13:36:55 Done.
+ public:
+ enum SiteConnectionStatus {
+ SITE_CONNECTION_STATUS_NA = 0,
+ SITE_CONNECTION_STATUS_ENCRYPTED, // OK
+ SITE_CONNECTION_STATUS_MIXED_CONTENT, // Minor warning
+ SITE_CONNECTION_STATUS_UNENCRYPTED, // Major warning
+ SITE_CONNECTION_STATUS_ENCRYPTED_ERROR, // Error
+ SITE_CONNECTION_STATUS_INTERNAL_PAGE, // Internal
+ };
Finnur 2012/02/14 11:00:36 nit: end all comments with a period (here and belo
markusheintz_ 2012/02/14 13:36:55 Done.
+
+ enum SiteIdentityStatus {
+ SITE_IDENTITY_STATUS_NA = 0,
+ SITE_IDENTITY_STATUS_CERT, // OK
+ SITE_IDENTITY_STATUS_EV_CERT, // OK
+ SITE_IDENTITY_STATUS_DNSSEC_CERT, // OK
+ SITE_IDENTITY_STATUS_CERT_NOT_VERIFIED, // Minor warning
+ SITE_IDENTITY_STATUS_NO_CERT, // Major warning
+ SITE_IDENTITY_STATUS_ERROR, // Error
+ SITE_IDENTITY_STATUS_INTERNAL_PAGE, // Internal
+ };
+
+ WebsiteSettings(Profile* profile,
+ TabContentsWrapper* wrapper,
+ const GURL& url,
+ const content::SSLStatus& ssl,
+ bool show_history);
+
+ virtual ~WebsiteSettings();
+
+ SiteConnectionStatus site_connection_status();
+
+ string16 site_connection_details();
+
+ SiteIdentityStatus site_identity_status();
+
+ string16 site_identity_details();
Finnur 2012/02/14 11:00:36 All of these functions can have |const| at the end
markusheintz_ 2012/02/14 13:36:55 Done.
+
+ private:
+ void Init(Profile* profile,
+ const GURL& url,
+ const content::SSLStatus& ssl);
+
+ SiteIdentityStatus site_identity_status_;
+
+ string16 organisation_name_;
Finnur 2012/02/14 11:00:36 Spelling: According to what I've been reading, Eng
markusheintz_ 2012/02/14 13:36:55 Changed to US version
+
+ string16 site_identity_details_;
+
+ SiteConnectionStatus site_connection_status_;
Finnur 2012/02/14 11:00:36 nit: My personal preference would be to keep this
markusheintz_ 2012/02/14 13:36:55 I sorted the fields and accessors like you suggest
+
+ string16 site_connection_details_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebsiteSettings);
+};
+
+#endif // CHROME_BROWSER_WEBSITE_SETTINGS_H_
« no previous file with comments | « no previous file | chrome/browser/website_settings.cc » ('j') | chrome/browser/website_settings.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698