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

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

Issue 1408643002: [Sync] Componentize synced_tab_delegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test broken by rebase Created 5 years, 2 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: 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 59946b86ea0f023e599bb30a5bebdd8d7105047b..cf2afdca8da6be63002707676e11fdcbfcedd8d9 100644
--- a/chrome/browser/sync/glue/synced_session_tracker.h
+++ b/chrome/browser/sync/glue/synced_session_tracker.h
@@ -16,6 +16,10 @@
#include "components/sync_driver/glue/synced_session.h"
#include "components/sync_driver/tab_node_pool.h"
+namespace sync_sessions {
+class SyncSessionsClient;
+}
+
namespace browser_sync {
// Class to manage synced sessions. The tracker will own all SyncedSession
@@ -25,7 +29,8 @@ namespace browser_sync {
// the local session (whose tag we maintain separately).
class SyncedSessionTracker {
public:
- SyncedSessionTracker();
+ explicit SyncedSessionTracker(
+ sync_sessions::SyncSessionsClient* sessions_client);
~SyncedSessionTracker();
// We track and distinguish the local session from foreign sessions.
@@ -223,6 +228,9 @@ class SyncedSessionTracker {
SessionID::id_type tab_id,
int tab_node_id);
+ // The client of the sync sessions datatype.
+ sync_sessions::SyncSessionsClient* const sessions_client_;
+
// Per client mapping of tab id's to their SessionTab objects.
// Key: session tag.
// Value: Tab id to SessionTabWrapper map.

Powered by Google App Engine
This is Rietveld 408576698