| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 public: | 38 public: |
| 39 // Flags used for the page security content status. | 39 // Flags used for the page security content status. |
| 40 enum ContentStatusFlags { | 40 enum ContentStatusFlags { |
| 41 NORMAL_CONTENT = 0, // Neither of the 2 cases below. | 41 NORMAL_CONTENT = 0, // Neither of the 2 cases below. |
| 42 MIXED_CONTENT = 1 << 0, // https page containing http resources. | 42 MIXED_CONTENT = 1 << 0, // https page containing http resources. |
| 43 UNSAFE_CONTENT = 1 << 1 // https page containing broken https resources. | 43 UNSAFE_CONTENT = 1 << 1 // https page containing broken https resources. |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 SSLStatus(); | 46 SSLStatus(); |
| 47 | 47 |
| 48 bool Equals(const SSLStatus& status) const { |
| 49 return security_style_ == status.security_style_ && |
| 50 cert_id_ == status.cert_id_ && |
| 51 cert_status_ == status.cert_status_ && |
| 52 security_bits_ == status.security_bits_ && |
| 53 content_status_ == status.content_status_; |
| 54 } |
| 55 |
| 48 void set_security_style(SecurityStyle security_style) { | 56 void set_security_style(SecurityStyle security_style) { |
| 49 security_style_ = security_style; | 57 security_style_ = security_style; |
| 50 } | 58 } |
| 51 SecurityStyle security_style() const { | 59 SecurityStyle security_style() const { |
| 52 return security_style_; | 60 return security_style_; |
| 53 } | 61 } |
| 54 | 62 |
| 55 void set_cert_id(int ssl_cert_id) { | 63 void set_cert_id(int ssl_cert_id) { |
| 56 cert_id_ = ssl_cert_id; | 64 cert_id_ = ssl_cert_id; |
| 57 } | 65 } |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 411 // This is a cached version of the result of GetTitleForDisplay. It prevents | 419 // This is a cached version of the result of GetTitleForDisplay. It prevents |
| 412 // us from having to do URL formatting on the URL evey time the title is | 420 // us from having to do URL formatting on the URL evey time the title is |
| 413 // displayed. When the URL, display URL, or title is set, this should be | 421 // displayed. When the URL, display URL, or title is set, this should be |
| 414 // cleared to force a refresh. | 422 // cleared to force a refresh. |
| 415 string16 cached_display_title_; | 423 string16 cached_display_title_; |
| 416 | 424 |
| 417 // Copy and assignment is explicitly allowed for this class. | 425 // Copy and assignment is explicitly allowed for this class. |
| 418 }; | 426 }; |
| 419 | 427 |
| 420 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ | 428 #endif // CHROME_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ |
| OLD | NEW |