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

Unified Diff: components/sessions/core/serialized_navigation_entry.h

Issue 2776633003: Add taskid for navigation, created in session sync (Closed)
Patch Set: Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: components/sessions/core/serialized_navigation_entry.h
diff --git a/components/sessions/core/serialized_navigation_entry.h b/components/sessions/core/serialized_navigation_entry.h
index 3a8e665ff02e256d5e8ab330a1ccef226e3c4813..d836d73c112486c8cc5fdd1814bfa92ce0054a44 100644
--- a/components/sessions/core/serialized_navigation_entry.h
+++ b/components/sessions/core/serialized_navigation_entry.h
@@ -128,6 +128,9 @@ class SESSIONS_EXPORT SerializedNavigationEntry {
return extended_info_map_;
}
+ const std::vector<int64_t>& get_task_id() const { return task_id_; }
+ void set_task_id(const std::vector<int64_t>& task_id) { task_id_ = task_id; }
+
size_t EstimateMemoryUsage() const;
private:
@@ -169,6 +172,9 @@ class SESSIONS_EXPORT SerializedNavigationEntry {
// Provides storage for arbitrary key/value pairs used by features. This
// data is not synced.
std::map<std::string, std::string> extended_info_map_;
+
+ // Task id of a Chrome task, which is prefixed by its parent task.
Patrick Noland 2017/03/24 20:51:57 Can you explain the prefixing more fully; i.e. it'
shenchao 2017/03/25 23:53:13 Move it above to the variables corresponding to Na
+ std::vector<int64_t> task_id_;
};
} // namespace sessions
« no previous file with comments | « no previous file | components/sync/protocol/session_specifics.proto » ('j') | components/sync/protocol/session_specifics.proto » ('J')

Powered by Google App Engine
This is Rietveld 408576698