OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 // Called by a component that supports non-blocking sync when it is ready to | 349 // Called by a component that supports non-blocking sync when it is ready to |
350 // initialize its connection to the sync backend. | 350 // initialize its connection to the sync backend. |
351 // | 351 // |
352 // If policy allows for syncing this type (ie. it is "preferred"), then this | 352 // If policy allows for syncing this type (ie. it is "preferred"), then this |
353 // should result in a message to enable syncing for this type when the sync | 353 // should result in a message to enable syncing for this type when the sync |
354 // backend is available. If the type is not to be synced, this should result | 354 // backend is available. If the type is not to be synced, this should result |
355 // in a message that allows the component to delete its local sync state. | 355 // in a message that allows the component to delete its local sync state. |
356 void InitializeNonBlockingType( | 356 void InitializeNonBlockingType( |
357 syncer::ModelType type, | 357 syncer::ModelType type, |
358 const scoped_refptr<base::SequencedTaskRunner>& task_runner, | 358 const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
359 const base::WeakPtr<syncer::ModelTypeSyncProxyImpl>& proxy); | 359 const base::WeakPtr<syncer_v2::ModelTypeSyncProxyImpl>& proxy); |
360 | 360 |
361 // Returns the SyncedWindowDelegatesGetter from the embedded sessions manager. | 361 // Returns the SyncedWindowDelegatesGetter from the embedded sessions manager. |
362 virtual browser_sync::SyncedWindowDelegatesGetter* | 362 virtual browser_sync::SyncedWindowDelegatesGetter* |
363 GetSyncedWindowDelegatesGetter() const; | 363 GetSyncedWindowDelegatesGetter() const; |
364 | 364 |
365 // Returns the SyncableService for syncer::SESSIONS. | 365 // Returns the SyncableService for syncer::SESSIONS. |
366 virtual syncer::SyncableService* GetSessionsSyncableService(); | 366 virtual syncer::SyncableService* GetSessionsSyncableService(); |
367 | 367 |
368 // Returns the SyncableService for syncer::DEVICE_INFO. | 368 // Returns the SyncableService for syncer::DEVICE_INFO. |
369 virtual syncer::SyncableService* GetDeviceInfoSyncableService(); | 369 virtual syncer::SyncableService* GetDeviceInfoSyncableService(); |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1087 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; | 1087 base::WeakPtrFactory<ProfileSyncService> startup_controller_weak_factory_; |
1088 | 1088 |
1089 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 1089 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
1090 }; | 1090 }; |
1091 | 1091 |
1092 bool ShouldShowActionOnUI( | 1092 bool ShouldShowActionOnUI( |
1093 const syncer::SyncProtocolError& error); | 1093 const syncer::SyncProtocolError& error); |
1094 | 1094 |
1095 | 1095 |
1096 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 1096 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |