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

Side by Side Diff: components/sessions/serialized_navigation_entry.h

Issue 22837005: Add HTTP status code to navigation data structures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bug Created 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_ 5 #ifndef COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
6 #define COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_ 6 #define COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 int index() const { return index_; } 93 int index() const { return index_; }
94 void set_index(int index) { index_ = index; } 94 void set_index(int index) { index_ = index; }
95 95
96 // Accessors for some fields taken from NavigationEntry. 96 // Accessors for some fields taken from NavigationEntry.
97 int unique_id() const { return unique_id_; } 97 int unique_id() const { return unique_id_; }
98 const GURL& virtual_url() const { return virtual_url_; } 98 const GURL& virtual_url() const { return virtual_url_; }
99 const string16& title() const { return title_; } 99 const string16& title() const { return title_; }
100 const content::PageState& page_state() const { return page_state_; } 100 const content::PageState& page_state() const { return page_state_; }
101 const string16& search_terms() const { return search_terms_; } 101 const string16& search_terms() const { return search_terms_; }
102 const GURL& favicon_url() const { return favicon_url_; } 102 const GURL& favicon_url() const { return favicon_url_; }
103 int http_status_code() const { return http_status_code_; }
103 const content::Referrer& referrer() const { return referrer_; } 104 const content::Referrer& referrer() const { return referrer_; }
104 content::PageTransition transition_type() const { 105 content::PageTransition transition_type() const {
105 return transition_type_; 106 return transition_type_;
106 } 107 }
107 bool has_post_data() const { return has_post_data_; } 108 bool has_post_data() const { return has_post_data_; }
108 int64 post_id() const { return post_id_; } 109 int64 post_id() const { return post_id_; }
109 const GURL& original_request_url() const { return original_request_url_; } 110 const GURL& original_request_url() const { return original_request_url_; }
110 bool is_overriding_user_agent() const { return is_overriding_user_agent_; } 111 bool is_overriding_user_agent() const { return is_overriding_user_agent_; }
111 base::Time timestamp() const { return timestamp_; } 112 base::Time timestamp() const { return timestamp_; }
112 113
(...skipping 29 matching lines...) Expand all
142 string16 title_; 143 string16 title_;
143 content::PageState page_state_; 144 content::PageState page_state_;
144 content::PageTransition transition_type_; 145 content::PageTransition transition_type_;
145 bool has_post_data_; 146 bool has_post_data_;
146 int64 post_id_; 147 int64 post_id_;
147 GURL original_request_url_; 148 GURL original_request_url_;
148 bool is_overriding_user_agent_; 149 bool is_overriding_user_agent_;
149 base::Time timestamp_; 150 base::Time timestamp_;
150 string16 search_terms_; 151 string16 search_terms_;
151 GURL favicon_url_; 152 GURL favicon_url_;
153 int http_status_code_;
152 154
153 // Additional information. 155 // Additional information.
154 BlockedState blocked_state_; 156 BlockedState blocked_state_;
155 std::set<std::string> content_pack_categories_; 157 std::set<std::string> content_pack_categories_;
156 }; 158 };
157 159
158 } // namespace sessions 160 } // namespace sessions
159 161
160 #endif // COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_ 162 #endif // COMPONENTS_SESSIONS_SERIALIZED_NAVIGATION_ENTRY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698