OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 5 #ifndef CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 6 #define CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 RAN_INSECURE_CONTENT = 1 << 1, | 50 RAN_INSECURE_CONTENT = 1 << 1, |
51 }; | 51 }; |
52 | 52 |
53 SSLStatus(); | 53 SSLStatus(); |
54 | 54 |
55 bool Equals(const SSLStatus& status) const { | 55 bool Equals(const SSLStatus& status) const { |
56 return security_style_ == status.security_style_ && | 56 return security_style_ == status.security_style_ && |
57 cert_id_ == status.cert_id_ && | 57 cert_id_ == status.cert_id_ && |
58 cert_status_ == status.cert_status_ && | 58 cert_status_ == status.cert_status_ && |
59 security_bits_ == status.security_bits_ && | 59 security_bits_ == status.security_bits_ && |
60 content_status_ == status.content_status_; | 60 content_status_ == status.content_status_ && |
| 61 tls_username_ == status.tls_username_; |
61 } | 62 } |
62 | 63 |
63 void set_security_style(SecurityStyle security_style) { | 64 void set_security_style(SecurityStyle security_style) { |
64 security_style_ = security_style; | 65 security_style_ = security_style; |
65 } | 66 } |
66 SecurityStyle security_style() const { | 67 SecurityStyle security_style() const { |
67 return security_style_; | 68 return security_style_; |
68 } | 69 } |
69 | 70 |
70 void set_cert_id(int ssl_cert_id) { | 71 void set_cert_id(int ssl_cert_id) { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 // combination of any of the ContentStatusFlags defined above. It is used | 114 // combination of any of the ContentStatusFlags defined above. It is used |
114 // by some tests for checking and for certain copying. Use the per-status | 115 // by some tests for checking and for certain copying. Use the per-status |
115 // functions for normal usage. | 116 // functions for normal usage. |
116 void set_content_status(int content_status) { | 117 void set_content_status(int content_status) { |
117 content_status_ = content_status; | 118 content_status_ = content_status; |
118 } | 119 } |
119 int content_status() const { | 120 int content_status() const { |
120 return content_status_; | 121 return content_status_; |
121 } | 122 } |
122 | 123 |
| 124 void set_tls_username(string16 tls_username) { |
| 125 tls_username_ = tls_username; |
| 126 } |
| 127 string16 tls_username() const { |
| 128 return tls_username_; |
| 129 } |
| 130 |
123 private: | 131 private: |
124 // See the accessors above for descriptions. | 132 // See the accessors above for descriptions. |
125 SecurityStyle security_style_; | 133 SecurityStyle security_style_; |
126 int cert_id_; | 134 int cert_id_; |
127 int cert_status_; | 135 int cert_status_; |
128 int security_bits_; | 136 int security_bits_; |
129 int connection_status_; | 137 int connection_status_; |
130 int content_status_; | 138 int content_status_; |
| 139 string16 tls_username_; |
131 | 140 |
132 // Copy and assignment is explicitly allowed for this class. | 141 // Copy and assignment is explicitly allowed for this class. |
133 }; | 142 }; |
134 | 143 |
135 // Favicon ------------------------------------------------------------------- | 144 // Favicon ------------------------------------------------------------------- |
136 | 145 |
137 // Collects the favicon related information for a NavigationEntry. | 146 // Collects the favicon related information for a NavigationEntry. |
138 class FaviconStatus { | 147 class FaviconStatus { |
139 public: | 148 public: |
140 FaviconStatus(); | 149 FaviconStatus(); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
420 // This is a cached version of the result of GetTitleForDisplay. It prevents | 429 // This is a cached version of the result of GetTitleForDisplay. It prevents |
421 // us from having to do URL formatting on the URL evey time the title is | 430 // us from having to do URL formatting on the URL evey time the title is |
422 // displayed. When the URL, virtual URL, or title is set, this should be | 431 // displayed. When the URL, virtual URL, or title is set, this should be |
423 // cleared to force a refresh. | 432 // cleared to force a refresh. |
424 string16 cached_display_title_; | 433 string16 cached_display_title_; |
425 | 434 |
426 // Copy and assignment is explicitly allowed for this class. | 435 // Copy and assignment is explicitly allowed for this class. |
427 }; | 436 }; |
428 | 437 |
429 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 438 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
OLD | NEW |