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

Side by Side Diff: ios/chrome/browser/sync/ios_chrome_sync_client.h

Issue 2710623003: [sync] Clean up path generation for the local sync database. (Closed)
Patch Set: Fix non-windows bots. 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 unified diff | Download patch
OLDNEW
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 IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 5 #ifndef IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 6 #define IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
7 7
8 #include <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
13 #include "components/sync/driver/sync_client.h" 14 #include "components/sync/driver/sync_client.h"
14 15
15 namespace autofill { 16 namespace autofill {
16 class AutofillWebDataService; 17 class AutofillWebDataService;
17 } 18 }
18 19
19 namespace ios { 20 namespace ios {
20 class ChromeBrowserState; 21 class ChromeBrowserState;
(...skipping 11 matching lines...) Expand all
32 33
33 class IOSChromeSyncClient : public syncer::SyncClient { 34 class IOSChromeSyncClient : public syncer::SyncClient {
34 public: 35 public:
35 explicit IOSChromeSyncClient(ios::ChromeBrowserState* browser_state); 36 explicit IOSChromeSyncClient(ios::ChromeBrowserState* browser_state);
36 ~IOSChromeSyncClient() override; 37 ~IOSChromeSyncClient() override;
37 38
38 // SyncClient implementation. 39 // SyncClient implementation.
39 void Initialize() override; 40 void Initialize() override;
40 syncer::SyncService* GetSyncService() override; 41 syncer::SyncService* GetSyncService() override;
41 PrefService* GetPrefService() override; 42 PrefService* GetPrefService() override;
43 base::FilePath GetLocalSyncBackendFolder() override;
42 bookmarks::BookmarkModel* GetBookmarkModel() override; 44 bookmarks::BookmarkModel* GetBookmarkModel() override;
43 favicon::FaviconService* GetFaviconService() override; 45 favicon::FaviconService* GetFaviconService() override;
44 history::HistoryService* GetHistoryService() override; 46 history::HistoryService* GetHistoryService() override;
45 bool HasPasswordStore() override; 47 bool HasPasswordStore() override;
46 base::Closure GetPasswordStateChangedCallback() override; 48 base::Closure GetPasswordStateChangedCallback() override;
47 syncer::SyncApiComponentFactory::RegisterDataTypesMethod 49 syncer::SyncApiComponentFactory::RegisterDataTypesMethod
48 GetRegisterPlatformTypesCallback() override; 50 GetRegisterPlatformTypesCallback() override;
49 autofill::PersonalDataManager* GetPersonalDataManager() override; 51 autofill::PersonalDataManager* GetPersonalDataManager() override;
50 invalidation::InvalidationService* GetInvalidationService() override; 52 invalidation::InvalidationService* GetInvalidationService() override;
51 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override; 53 BookmarkUndoService* GetBookmarkUndoServiceIfExists() override;
(...skipping 26 matching lines...) Expand all
78 scoped_refptr<password_manager::PasswordStore> password_store_; 80 scoped_refptr<password_manager::PasswordStore> password_store_;
79 81
80 std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_; 82 std::unique_ptr<sync_sessions::SyncSessionsClient> sync_sessions_client_;
81 83
82 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_; 84 base::WeakPtrFactory<IOSChromeSyncClient> weak_ptr_factory_;
83 85
84 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient); 86 DISALLOW_COPY_AND_ASSIGN(IOSChromeSyncClient);
85 }; 87 };
86 88
87 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__ 89 #endif // IOS_CHROME_BROWSER_SYNC_IOS_CHROME_SYNC_CLIENT_H__
OLDNEW
« no previous file with comments | « components/sync/driver/sync_service_base.cc ('k') | ios/chrome/browser/sync/ios_chrome_sync_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698