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

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

Issue 2451583002: Add MDP for TabRestorer.
Patch Set: Created 4 years, 1 month 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_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
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
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_
OLDNEW
« no previous file with comments | « components/sessions/core/persistent_tab_restore_service.cc ('k') | components/sessions/core/serialized_navigation_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698