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

Side by Side Diff: chrome/browser/sync/sessions2/sessions_sync_manager.h

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_
6 #define CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_ 6 #define CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/scoped_vector.h" 15 #include "base/memory/scoped_vector.h"
16 #include "base/memory/weak_ptr.h" 16 #include "base/memory/weak_ptr.h"
17 #include "base/time/time.h" 17 #include "base/time/time.h"
18 #include "chrome/browser/sessions/session_id.h" 18 #include "chrome/browser/sessions/session_id.h"
19 #include "chrome/browser/sessions/session_types.h" 19 #include "chrome/browser/sessions/session_types.h"
20 #include "chrome/browser/sync/glue/device_info.h" 20 #include "chrome/browser/sync/glue/device_info.h"
21 #include "chrome/browser/sync/glue/favicon_cache.h" 21 #include "chrome/browser/sync/glue/favicon_cache.h"
22 #include "chrome/browser/sync/glue/synced_session.h" 22 #include "chrome/browser/sync/glue/synced_session.h"
23 #include "chrome/browser/sync/glue/synced_session_tracker.h" 23 #include "chrome/browser/sync/glue/synced_session_tracker.h"
24 #include "chrome/browser/sync/open_tabs_ui_delegate.h" 24 #include "chrome/browser/sync/open_tabs_ui_delegate.h"
25 #include "chrome/browser/sync/sessions2/tab_node_pool2.h" 25 #include "chrome/browser/sync/sessions2/tab_node_pool2.h"
26 #include "chrome/browser/sync/sync_prefs.h" 26 #include "components/sync_driver/sync_prefs.h"
27 #include "sync/api/syncable_service.h" 27 #include "sync/api/syncable_service.h"
28 28
29 class Profile; 29 class Profile;
30 30
31 namespace syncer { 31 namespace syncer {
32 class SyncErrorFactory; 32 class SyncErrorFactory;
33 } 33 }
34 34
35 namespace sync_pb { 35 namespace sync_pb {
36 class SessionHeader; 36 class SessionHeader;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 340
341 // Tracks whether our local representation of which sync nodes map to what 341 // Tracks whether our local representation of which sync nodes map to what
342 // tabs (belonging to the current local session) is inconsistent. This can 342 // tabs (belonging to the current local session) is inconsistent. This can
343 // happen if a foreign client deems our session as "stale" and decides to 343 // happen if a foreign client deems our session as "stale" and decides to
344 // delete it. Rather than respond by bullishly re-creating our nodes 344 // delete it. Rather than respond by bullishly re-creating our nodes
345 // immediately, which could lead to ping-pong sequences, we give the benefit 345 // immediately, which could lead to ping-pong sequences, we give the benefit
346 // of the doubt and hold off until another local navigation occurs, which 346 // of the doubt and hold off until another local navigation occurs, which
347 // proves that we are still relevant. 347 // proves that we are still relevant.
348 bool local_tab_pool_out_of_sync_; 348 bool local_tab_pool_out_of_sync_;
349 349
350 SyncPrefs sync_prefs_; 350 sync_driver::SyncPrefs sync_prefs_;
351 351
352 const Profile* const profile_; 352 const Profile* const profile_;
353 353
354 scoped_ptr<syncer::SyncErrorFactory> error_handler_; 354 scoped_ptr<syncer::SyncErrorFactory> error_handler_;
355 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; 355 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
356 356
357 const SyncInternalApiDelegate* const delegate_; 357 const SyncInternalApiDelegate* const delegate_;
358 358
359 // Unique client tag. 359 // Unique client tag.
360 std::string current_machine_tag_; 360 std::string current_machine_tag_;
(...skipping 11 matching lines...) Expand all
372 372
373 scoped_ptr<LocalSessionEventRouter> local_event_router_; 373 scoped_ptr<LocalSessionEventRouter> local_event_router_;
374 scoped_ptr<SyncedWindowDelegatesGetter> synced_window_getter_; 374 scoped_ptr<SyncedWindowDelegatesGetter> synced_window_getter_;
375 375
376 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager); 376 DISALLOW_COPY_AND_ASSIGN(SessionsSyncManager);
377 }; 377 };
378 378
379 } // namespace browser_sync 379 } // namespace browser_sync
380 380
381 #endif // CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_ 381 #endif // CHROME_BROWSER_SYNC_SESSIONS2_SESSIONS_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service_unittest.cc ('k') | chrome/browser/sync/startup_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698