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

Unified Diff: components/sync_sessions/sessions_sync_manager.h

Issue 2776633003: Add taskid for navigation, created in session sync (Closed)
Patch Set: comments and refactoring 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/sync_sessions/sessions_sync_manager.h
diff --git a/components/sync_sessions/sessions_sync_manager.h b/components/sync_sessions/sessions_sync_manager.h
index d685c65cd42b58f7cb22d4b2b3b6810761165eec..89e72949b8cdd67729bbf81804fc34dd179e2d0a 100644
--- a/components/sync_sessions/sessions_sync_manager.h
+++ b/components/sync_sessions/sessions_sync_manager.h
@@ -17,6 +17,7 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
+#include "base/time/clock.h"
#include "base/time/time.h"
#include "components/sessions/core/session_id.h"
#include "components/sessions/core/session_types.h"
@@ -30,6 +31,7 @@
#include "components/sync_sessions/revisit/page_revisit_broadcaster.h"
#include "components/sync_sessions/synced_session.h"
#include "components/sync_sessions/synced_session_tracker.h"
+#include "components/sync_sessions/task_tracker.h"
namespace syncer {
class LocalDeviceInfoProvider;
@@ -64,7 +66,9 @@ class SessionsSyncManager : public syncer::SyncableService,
syncer::LocalDeviceInfoProvider* local_device,
std::unique_ptr<LocalSessionEventRouter> router,
const base::Closure& sessions_updated_callback,
- const base::Closure& datatype_refresh_callback);
+ const base::Closure& datatype_refresh_callback,
+ std::unique_ptr<base::Clock> clock =
+ base::MakeUnique<base::DefaultClock>());
~SessionsSyncManager() override;
// syncer::SyncableService implementation.
@@ -228,7 +232,8 @@ class SessionsSyncManager : public syncer::SyncableService,
// Set |session_tab| from |tab_delegate| and |mtime|.
void SetSessionTabFromDelegate(const SyncedTabDelegate& tab_delegate,
base::Time mtime,
- sessions::SessionTab* session_tab);
+ sessions::SessionTab* session_tab,
+ TabTasks* tab_tasks);
// Sets |variation_ids| field of |session_tab| with the ids of the currently
// assigned variations which should be sent to sync.
@@ -323,6 +328,8 @@ class SessionsSyncManager : public syncer::SyncableService,
// Callback to inform sync that a sync data refresh is requested.
base::Closure datatype_refresh_callback_;
+ std::unique_ptr<TaskTracker> task_tracker_;
Nicolas Zea 2017/03/27 20:43:52 nit: comment what this is for
shenchao 2017/04/06 00:54:55 Done.
+
DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager);
};

Powered by Google App Engine
This is Rietveld 408576698