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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/website_settings.cc » ('j') | chrome/browser/website_settings.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_WEBSITE_SETTINGS_H_
6 #define CHROME_BROWSER_WEBSITE_SETTINGS_H_
7
8 #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.
9 #include "base/string16.h"
10
11 #include "googleurl/src/gurl.h"
12
13 namespace content {
14 struct SSLStatus;
15 }
16
17 class Profile;
18 class TabContentsWrapper;
19
20 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.
21 public:
22 enum SiteConnectionStatus {
23 SITE_CONNECTION_STATUS_NA = 0,
24 SITE_CONNECTION_STATUS_ENCRYPTED, // OK
25 SITE_CONNECTION_STATUS_MIXED_CONTENT, // Minor warning
26 SITE_CONNECTION_STATUS_UNENCRYPTED, // Major warning
27 SITE_CONNECTION_STATUS_ENCRYPTED_ERROR, // Error
28 SITE_CONNECTION_STATUS_INTERNAL_PAGE, // Internal
29 };
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.
30
31 enum SiteIdentityStatus {
32 SITE_IDENTITY_STATUS_NA = 0,
33 SITE_IDENTITY_STATUS_CERT, // OK
34 SITE_IDENTITY_STATUS_EV_CERT, // OK
35 SITE_IDENTITY_STATUS_DNSSEC_CERT, // OK
36 SITE_IDENTITY_STATUS_CERT_NOT_VERIFIED, // Minor warning
37 SITE_IDENTITY_STATUS_NO_CERT, // Major warning
38 SITE_IDENTITY_STATUS_ERROR, // Error
39 SITE_IDENTITY_STATUS_INTERNAL_PAGE, // Internal
40 };
41
42 WebsiteSettings(Profile* profile,
43 TabContentsWrapper* wrapper,
44 const GURL& url,
45 const content::SSLStatus& ssl,
46 bool show_history);
47
48 virtual ~WebsiteSettings();
49
50 SiteConnectionStatus site_connection_status();
51
52 string16 site_connection_details();
53
54 SiteIdentityStatus site_identity_status();
55
56 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.
57
58 private:
59 void Init(Profile* profile,
60 const GURL& url,
61 const content::SSLStatus& ssl);
62
63 SiteIdentityStatus site_identity_status_;
64
65 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
66
67 string16 site_identity_details_;
68
69 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
70
71 string16 site_connection_details_;
72
73 DISALLOW_COPY_AND_ASSIGN(WebsiteSettings);
74 };
75
76 #endif // CHROME_BROWSER_WEBSITE_SETTINGS_H_
OLDNEW
« 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