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

Side by Side Diff: content/browser/tab_contents/navigation_entry.h

Issue 7819009: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 5 #ifndef CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 6 #define CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "content/common/page_transition_types.h" 13 #include "content/common/page_transition_types.h"
14 #include "content/common/page_type.h" 14 #include "content/common/page_type.h"
15 #include "content/common/security_style.h" 15 #include "content/common/security_style.h"
16 #include "googleurl/src/gurl.h" 16 #include "googleurl/src/gurl.h"
17 #include "net/base/cert_status_flags.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
18 19
19 class SiteInstance; 20 class SiteInstance;
20 21
21 //////////////////////////////////////////////////////////////////////////////// 22 ////////////////////////////////////////////////////////////////////////////////
22 // 23 //
23 // NavigationEntry class 24 // NavigationEntry class
24 // 25 //
25 // A NavigationEntry is a data structure that captures all the information 26 // A NavigationEntry is a data structure that captures all the information
26 // required to recreate a browsing state. This includes some opaque binary 27 // required to recreate a browsing state. This includes some opaque binary
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) {
71 cert_id_ = ssl_cert_id; 72 cert_id_ = ssl_cert_id;
72 } 73 }
73 int cert_id() const { 74 int cert_id() const {
74 return cert_id_; 75 return cert_id_;
75 } 76 }
76 77
77 void set_cert_status(int ssl_cert_status) { 78 void set_cert_status(net::CertStatus ssl_cert_status) {
78 cert_status_ = ssl_cert_status; 79 cert_status_ = ssl_cert_status;
79 } 80 }
80 int cert_status() const { 81 net::CertStatus cert_status() const {
81 return cert_status_; 82 return cert_status_;
82 } 83 }
83 84
84 void set_security_bits(int security_bits) { 85 void set_security_bits(int security_bits) {
85 security_bits_ = security_bits; 86 security_bits_ = security_bits;
86 } 87 }
87 int security_bits() const { 88 int security_bits() const {
88 return security_bits_; 89 return security_bits_;
89 } 90 }
90 91
(...skipping 26 matching lines...) Expand all
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
123 private: 124 private:
124 // See the accessors above for descriptions. 125 // See the accessors above for descriptions.
125 SecurityStyle security_style_; 126 SecurityStyle security_style_;
126 int cert_id_; 127 int cert_id_;
127 int cert_status_; 128 net::CertStatus cert_status_;
128 int security_bits_; 129 int security_bits_;
129 int connection_status_; 130 int connection_status_;
130 int content_status_; 131 int content_status_;
131 132
132 // Copy and assignment is explicitly allowed for this class. 133 // Copy and assignment is explicitly allowed for this class.
133 }; 134 };
134 135
135 // Favicon ------------------------------------------------------------------- 136 // Favicon -------------------------------------------------------------------
136 137
137 // Collects the favicon related information for a NavigationEntry. 138 // Collects the favicon related information for a NavigationEntry.
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 // This is a cached version of the result of GetTitleForDisplay. It prevents 421 // 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 422 // 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 423 // displayed. When the URL, virtual URL, or title is set, this should be
423 // cleared to force a refresh. 424 // cleared to force a refresh.
424 mutable string16 cached_display_title_; 425 mutable string16 cached_display_title_;
425 426
426 // Copy and assignment is explicitly allowed for this class. 427 // Copy and assignment is explicitly allowed for this class.
427 }; 428 };
428 429
429 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_ 430 #endif // CONTENT_BROWSER_TAB_CONTENTS_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698