| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_BASE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ |
| 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 std::unique_ptr<SigninManagerWrapper> signin, | 40 std::unique_ptr<SigninManagerWrapper> signin, |
| 41 const version_info::Channel& channel, | 41 const version_info::Channel& channel, |
| 42 const base::FilePath& base_directory, | 42 const base::FilePath& base_directory, |
| 43 const std::string& debug_identifier); | 43 const std::string& debug_identifier); |
| 44 ~SyncServiceBase() override; | 44 ~SyncServiceBase() override; |
| 45 | 45 |
| 46 // SyncService partial implementation. | 46 // SyncService partial implementation. |
| 47 void AddObserver(SyncServiceObserver* observer) override; | 47 void AddObserver(SyncServiceObserver* observer) override; |
| 48 void RemoveObserver(SyncServiceObserver* observer) override; | 48 void RemoveObserver(SyncServiceObserver* observer) override; |
| 49 bool HasObserver(const SyncServiceObserver* observer) const override; | 49 bool HasObserver(const SyncServiceObserver* observer) const override; |
| 50 SigninManagerBase* signin() const override; |
| 50 | 51 |
| 51 // Given base path (path to profile) formats path to "Sync Data" folder where | 52 // Given base path (path to profile) formats path to "Sync Data" folder where |
| 52 // sync engine stores directory database. | 53 // sync engine stores directory database. |
| 53 static base::FilePath FormatSyncDataPath( | 54 static base::FilePath FormatSyncDataPath( |
| 54 const base::FilePath& base_directory); | 55 const base::FilePath& base_directory); |
| 55 | 56 |
| 56 // Given base path (path to profile) formats path to a folder containing | 57 // Given base path (path to profile) formats path to a folder containing |
| 57 // ModelTypeStore's leveldb database. | 58 // ModelTypeStore's leveldb database. |
| 58 static base::FilePath FormatSharedModelTypeStorePath( | 59 static base::FilePath FormatSharedModelTypeStorePath( |
| 59 const base::FilePath& base_directory); | 60 const base::FilePath& base_directory); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // this object was created on. | 126 // this object was created on. |
| 126 base::ThreadChecker thread_checker_; | 127 base::ThreadChecker thread_checker_; |
| 127 | 128 |
| 128 private: | 129 private: |
| 129 DISALLOW_COPY_AND_ASSIGN(SyncServiceBase); | 130 DISALLOW_COPY_AND_ASSIGN(SyncServiceBase); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace syncer | 133 } // namespace syncer |
| 133 | 134 |
| 134 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ | 135 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_BASE_H_ |
| OLD | NEW |