OLD | NEW |
---|---|
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_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 5 #ifndef COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 6 #define COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
121 void set_content_pack_categories( | 121 void set_content_pack_categories( |
122 const std::set<std::string>& content_pack_categories) { | 122 const std::set<std::string>& content_pack_categories) { |
123 content_pack_categories_ = content_pack_categories; | 123 content_pack_categories_ = content_pack_categories; |
124 } | 124 } |
125 const std::vector<GURL>& redirect_chain() const { return redirect_chain_; } | 125 const std::vector<GURL>& redirect_chain() const { return redirect_chain_; } |
126 | 126 |
127 const std::map<std::string, std::string>& extended_info_map() const { | 127 const std::map<std::string, std::string>& extended_info_map() const { |
128 return extended_info_map_; | 128 return extended_info_map_; |
129 } | 129 } |
130 | 130 |
131 const std::vector<int64_t>& get_task_id() const { return task_id_; } | |
132 void set_task_id(const std::vector<int64_t>& task_id) { task_id_ = task_id; } | |
133 | |
131 size_t EstimateMemoryUsage() const; | 134 size_t EstimateMemoryUsage() const; |
132 | 135 |
133 private: | 136 private: |
134 friend class ContentSerializedNavigationBuilder; | 137 friend class ContentSerializedNavigationBuilder; |
135 friend class ContentSerializedNavigationDriver; | 138 friend class ContentSerializedNavigationDriver; |
136 friend class SerializedNavigationEntryTestHelper; | 139 friend class SerializedNavigationEntryTestHelper; |
137 friend class IOSSerializedNavigationBuilder; | 140 friend class IOSSerializedNavigationBuilder; |
138 friend class IOSSerializedNavigationDriver; | 141 friend class IOSSerializedNavigationDriver; |
139 | 142 |
140 // Index in the NavigationController. | 143 // Index in the NavigationController. |
(...skipping 12 matching lines...) Expand all Loading... | |
153 bool has_post_data_; | 156 bool has_post_data_; |
154 int64_t post_id_; | 157 int64_t post_id_; |
155 GURL original_request_url_; | 158 GURL original_request_url_; |
156 bool is_overriding_user_agent_; | 159 bool is_overriding_user_agent_; |
157 base::Time timestamp_; | 160 base::Time timestamp_; |
158 base::string16 search_terms_; | 161 base::string16 search_terms_; |
159 GURL favicon_url_; | 162 GURL favicon_url_; |
160 int http_status_code_; | 163 int http_status_code_; |
161 bool is_restored_; // Not persisted. | 164 bool is_restored_; // Not persisted. |
162 std::vector<GURL> redirect_chain_; // Not persisted. | 165 std::vector<GURL> redirect_chain_; // Not persisted. |
166 std::vector<int64_t> task_id_; | |
Nicolas Zea
2017/03/27 20:43:52
This class is exclusively meant to wrap data store
shenchao
2017/04/06 00:54:55
Acknowledged. Stopped using the SerializedNavigati
| |
163 | 167 |
164 // Additional information. | 168 // Additional information. |
165 BlockedState blocked_state_; | 169 BlockedState blocked_state_; |
166 PasswordState password_state_; | 170 PasswordState password_state_; |
167 std::set<std::string> content_pack_categories_; | 171 std::set<std::string> content_pack_categories_; |
168 | 172 |
169 // Provides storage for arbitrary key/value pairs used by features. This | 173 // Provides storage for arbitrary key/value pairs used by features. This |
170 // data is not synced. | 174 // data is not synced. |
171 std::map<std::string, std::string> extended_info_map_; | 175 std::map<std::string, std::string> extended_info_map_; |
172 }; | 176 }; |
173 | 177 |
174 } // namespace sessions | 178 } // namespace sessions |
175 | 179 |
176 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 180 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
OLD | NEW |