Chromium Code Reviews| Index: chrome/browser/sync/glue/synced_session.cc |
| diff --git a/chrome/browser/sync/glue/synced_session.cc b/chrome/browser/sync/glue/synced_session.cc |
| index c25342aa4068bbd8da79f50a191fbc0bcfe8eba9..2cf92623c2519d58f3688dddde8548530996501d 100644 |
| --- a/chrome/browser/sync/glue/synced_session.cc |
| +++ b/chrome/browser/sync/glue/synced_session.cc |
| @@ -5,11 +5,53 @@ |
| #include "chrome/browser/sync/glue/synced_session.h" |
| #include "base/stl_util.h" |
| -#include "chrome/browser/sessions/session_types.h" |
| #include "chrome/common/url_constants.h" |
| +#include "content/public/browser/navigation_entry.h" |
| namespace browser_sync { |
| +SyncedTabNavigation::SyncedTabNavigation() : unique_id_(0) { |
| +} |
| + |
| +SyncedTabNavigation::SyncedTabNavigation(const SyncedTabNavigation& tab) |
| + : unique_id_(tab.unique_id_), |
|
Andrew T Wilson (Slow)
2012/04/23 23:43:11
Are you sure this copy constructor copies over the
Nicolas Zea
2012/04/24 22:09:49
Good catch, I meant to invoke the constructor dire
|
| + timestamp_(tab.timestamp_) { |
| +} |
| + |
| +SyncedTabNavigation::SyncedTabNavigation(int index, |
| + const GURL& virtual_url, |
| + const content::Referrer& referrer, |
| + const string16& title, |
| + const std::string& state, |
| + content::PageTransition transition, |
| + int unique_id, |
| + const base::Time& timestamp) |
| + : TabNavigation(index, virtual_url, referrer, title, state, transition), |
| + unique_id_(unique_id), |
| + timestamp_(timestamp) { |
| +} |
| + |
| +SyncedTabNavigation::~SyncedTabNavigation() { |
| +} |
| + |
| +void SyncedTabNavigation::set_unique_id(int unique_id) { |
| + unique_id_ = unique_id; |
| +} |
| + |
| +int SyncedTabNavigation::unique_id() const { |
| + return unique_id_; |
| +} |
| + |
| +void SyncedTabNavigation::set_timestamp(const base::Time& timestamp) { |
| + timestamp_ = timestamp; |
| +} |
| +base::Time SyncedTabNavigation::timestamp() const { |
| + return timestamp_; |
| +} |
| + |
| +SyncedSessionTab::SyncedSessionTab() {} |
| +SyncedSessionTab::~SyncedSessionTab() {} |
| + |
| SyncedSession::SyncedSession() : session_tag("invalid"), |
| device_type(TYPE_UNSET) { |
| } |