OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 namespace sync_sessions { | 26 namespace sync_sessions { |
27 class OpenTabsUIDelegate; | 27 class OpenTabsUIDelegate; |
28 } // namespace sync_sessions | 28 } // namespace sync_sessions |
29 | 29 |
30 namespace syncer { | 30 namespace syncer { |
31 | 31 |
32 class BaseTransaction; | 32 class BaseTransaction; |
33 class DataTypeController; | 33 class DataTypeController; |
34 class JsController; | 34 class JsController; |
35 class LocalDeviceInfoProvider; | 35 class LocalDeviceInfoProvider; |
| 36 class GlobalIdMapper; |
36 class ProtocolEventObserver; | 37 class ProtocolEventObserver; |
37 class SyncClient; | 38 class SyncClient; |
38 class SyncCycleSnapshot; | 39 class SyncCycleSnapshot; |
39 class TypeDebugInfoObserver; | 40 class TypeDebugInfoObserver; |
40 struct SyncStatus; | 41 struct SyncStatus; |
41 struct UserShare; | 42 struct UserShare; |
42 | 43 |
43 // Events in ClearServerData flow to be recorded in histogram. Existing | 44 // Events in ClearServerData flow to be recorded in histogram. Existing |
44 // constants should not be deleted or reordered. New ones shold be added at the | 45 // constants should not be deleted or reordered. New ones shold be added at the |
45 // end, before CLEAR_SERVER_DATA_MAX. | 46 // end, before CLEAR_SERVER_DATA_MAX. |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 // For safety, the callback should be bound to some sort of WeakPtr<> or | 347 // For safety, the callback should be bound to some sort of WeakPtr<> or |
347 // scoped_refptr<>. | 348 // scoped_refptr<>. |
348 virtual void GetAllNodes( | 349 virtual void GetAllNodes( |
349 const base::Callback<void(std::unique_ptr<base::ListValue>)>& | 350 const base::Callback<void(std::unique_ptr<base::ListValue>)>& |
350 callback) = 0; | 351 callback) = 0; |
351 | 352 |
352 // Non-owning pointer to sign in logic that can be used to fetch information | 353 // Non-owning pointer to sign in logic that can be used to fetch information |
353 // about the currently signed in user. | 354 // about the currently signed in user. |
354 virtual SigninManagerBase* signin() const = 0; | 355 virtual SigninManagerBase* signin() const = 0; |
355 | 356 |
| 357 virtual GlobalIdMapper* GetGlobalIdMapper() const = 0; |
| 358 |
356 protected: | 359 protected: |
357 SyncService() {} | 360 SyncService() {} |
358 | 361 |
359 private: | 362 private: |
360 DISALLOW_COPY_AND_ASSIGN(SyncService); | 363 DISALLOW_COPY_AND_ASSIGN(SyncService); |
361 }; | 364 }; |
362 | 365 |
363 } // namespace syncer | 366 } // namespace syncer |
364 | 367 |
365 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ | 368 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ |
OLD | NEW |