OLD | NEW |
---|---|
(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_ | |
OLD | NEW |