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

Unified Diff: chrome/browser/sync/glue/synced_session_tracker.h

Issue 10125002: [Sync] Add per-navigation timestamps/unique ids to tab sync. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 8 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
« no previous file with comments | « chrome/browser/sync/glue/synced_session.cc ('k') | chrome/browser/sync/glue/synced_session_tracker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/glue/synced_session_tracker.h
diff --git a/chrome/browser/sync/glue/synced_session_tracker.h b/chrome/browser/sync/glue/synced_session_tracker.h
index 8e402a78d9970068ee68cc852b541a973e01b889..955eb728488d4077fc1d333dce474db87b421487 100644
--- a/chrome/browser/sync/glue/synced_session_tracker.h
+++ b/chrome/browser/sync/glue/synced_session_tracker.h
@@ -20,7 +20,7 @@
namespace browser_sync {
// Class to manage synced sessions. The tracker will own all SyncedSession
-// and SessionTab objects it creates, and deletes them appropriately on
+// and SyncedSessionTab objects it creates, and deletes them appropriately on
// destruction.
// Note: SyncedSession objects are created for all synced sessions, including
// the local session (whose tag we maintain separately).
@@ -57,7 +57,7 @@ class SyncedSessionTracker {
// - Returns false, tab is set to NULL.
bool LookupSessionTab(const std::string& session_tag,
SessionID::id_type tab_id,
- const SessionTab** tab) const;
+ const SyncedSessionTab** tab) const;
// Returns a pointer to the SyncedSession object associated with
// |session_tag|. If none exists, creates one. Ownership of the
@@ -104,8 +104,8 @@ class SyncedSessionTracker {
// Returns a pointer to the SessionTab object associated with |tab_id| for
// the session specified with |session_tag|. If none exists, creates one.
// Ownership of the SessionTab remains within the SyncedSessionTracker.
- SessionTab* GetTab(const std::string& session_tag,
- SessionID::id_type tab_id);
+ SyncedSessionTab* GetTab(const std::string& session_tag,
+ SessionID::id_type tab_id);
// Free the memory for all dynamically allocated objects and clear the
// tracking structures.
@@ -139,10 +139,10 @@ class SyncedSessionTracker {
// above).
struct SessionTabWrapper {
SessionTabWrapper() : tab_ptr(NULL), owned(false) {}
- SessionTabWrapper(SessionTab* tab_ptr, bool owned)
+ SessionTabWrapper(SyncedSessionTab* tab_ptr, bool owned)
: tab_ptr(tab_ptr),
owned(owned) {}
- SessionTab* tab_ptr;
+ SyncedSessionTab* tab_ptr;
bool owned;
};
typedef std::map<SessionID::id_type, SessionTabWrapper> IDToSessionTabMap;
@@ -185,7 +185,7 @@ class SyncedSessionTracker {
// have not yet mapped to SyncedSessions. These are temporarily orphaned
// tabs, and won't be deleted if we delete synced_session_map_, but are still
// owned by the SyncedSessionTracker itself (and deleted on Clear()).
- std::set<SessionTab*> unmapped_tabs_;
+ std::set<SyncedSessionTab*> unmapped_tabs_;
// The tag for this machine's local session, so we can distinguish the foreign
// sessions.
« no previous file with comments | « chrome/browser/sync/glue/synced_session.cc ('k') | chrome/browser/sync/glue/synced_session_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698