| 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 size_t EstimateMemoryUsage() const; |
| 132 |
| 131 private: | 133 private: |
| 132 friend class ContentSerializedNavigationBuilder; | 134 friend class ContentSerializedNavigationBuilder; |
| 133 friend class ContentSerializedNavigationDriver; | 135 friend class ContentSerializedNavigationDriver; |
| 134 friend class SerializedNavigationEntryTestHelper; | 136 friend class SerializedNavigationEntryTestHelper; |
| 135 friend class IOSSerializedNavigationBuilder; | 137 friend class IOSSerializedNavigationBuilder; |
| 136 friend class IOSSerializedNavigationDriver; | 138 friend class IOSSerializedNavigationDriver; |
| 137 | 139 |
| 138 // Index in the NavigationController. | 140 // Index in the NavigationController. |
| 139 int index_; | 141 int index_; |
| 140 | 142 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 163 std::set<std::string> content_pack_categories_; | 165 std::set<std::string> content_pack_categories_; |
| 164 | 166 |
| 165 // Provides storage for arbitrary key/value pairs used by features. This | 167 // Provides storage for arbitrary key/value pairs used by features. This |
| 166 // data is not synced. | 168 // data is not synced. |
| 167 std::map<std::string, std::string> extended_info_map_; | 169 std::map<std::string, std::string> extended_info_map_; |
| 168 }; | 170 }; |
| 169 | 171 |
| 170 } // namespace sessions | 172 } // namespace sessions |
| 171 | 173 |
| 172 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ | 174 #endif // COMPONENTS_SESSIONS_CORE_SERIALIZED_NAVIGATION_ENTRY_H_ |
| OLD | NEW |