Chromium Code Reviews| 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 CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ | 5 #ifndef CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ |
| 6 #define CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ | 6 #define CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/browsing_data/browsing_data_remover.h" | 9 #include "chrome/browser/browsing_data/browsing_data_remover.h" |
| 10 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" | 10 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 47 syncer::ModelType type) override; | 47 syncer::ModelType type) override; |
| 48 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( | 48 scoped_refptr<syncer::ModelSafeWorker> CreateModelWorkerForGroup( |
| 49 syncer::ModelSafeGroup group, | 49 syncer::ModelSafeGroup group, |
| 50 syncer::WorkerLoopDestructionObserver* observer) override; | 50 syncer::WorkerLoopDestructionObserver* observer) override; |
| 51 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override; | 51 sync_driver::SyncApiComponentFactory* GetSyncApiComponentFactory() override; |
| 52 | 52 |
| 53 // Helper for testing rollback. | 53 // Helper for testing rollback. |
| 54 void SetBrowsingDataRemoverObserverForTesting( | 54 void SetBrowsingDataRemoverObserverForTesting( |
| 55 BrowsingDataRemover::Observer* observer); | 55 BrowsingDataRemover::Observer* observer); |
| 56 | 56 |
| 57 // Register data types which are enabled on desktop platforms only. | |
| 58 // |disabled_types| and |enabled_types| correspond only to those types | |
| 59 // being explicitly enabled/disabled by the command line. | |
|
blundell
2015/11/10 15:24:24
should this be "explicitly disabled/enabled"? I re
Nicolas Zea
2015/11/11 00:06:20
Done.
| |
| 60 static void RegisterDesktopDataTypes(Profile* profile, | |
| 61 syncer::ModelTypeSet disabled_types, | |
| 62 syncer::ModelTypeSet enabled_types, | |
| 63 sync_driver::SyncClient* sync_client); | |
| 64 | |
| 65 // Register data types which are enabled on Android platforms only. | |
| 66 // |disabled_types| and |enabled_types| correspond only to those types | |
| 67 // being explicitly enabled/disabled by the command line. | |
| 68 static void RegisterAndroidDataTypes(Profile* profile, | |
| 69 syncer::ModelTypeSet disabled_types, | |
| 70 syncer::ModelTypeSet enabled_types, | |
| 71 sync_driver::SyncClient* sync_client); | |
| 72 | |
| 57 private: | 73 private: |
| 58 Profile* const profile_; | 74 Profile* const profile_; |
| 59 | 75 |
| 60 void ClearBrowsingData(base::Time start, base::Time end); | 76 void ClearBrowsingData(base::Time start, base::Time end); |
| 61 | 77 |
| 62 // The sync api component factory in use by this client. | 78 // The sync api component factory in use by this client. |
| 63 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory_; | 79 scoped_ptr<sync_driver::SyncApiComponentFactory> component_factory_; |
| 64 | 80 |
| 65 // Members that must be fetched on the UI thread but accessed on their | 81 // Members that must be fetched on the UI thread but accessed on their |
| 66 // respective backend threads. | 82 // respective backend threads. |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 80 | 96 |
| 81 // Used in integration tests. | 97 // Used in integration tests. |
| 82 BrowsingDataRemover::Observer* browsing_data_remover_observer_; | 98 BrowsingDataRemover::Observer* browsing_data_remover_observer_; |
| 83 | 99 |
| 84 DISALLOW_COPY_AND_ASSIGN(ChromeSyncClient); | 100 DISALLOW_COPY_AND_ASSIGN(ChromeSyncClient); |
| 85 }; | 101 }; |
| 86 | 102 |
| 87 } // namespace browser_sync | 103 } // namespace browser_sync |
| 88 | 104 |
| 89 #endif // CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ | 105 #endif // CHROME_BROWSER_SYNC_CHROME_SYNC_CLIENT_H__ |
| OLD | NEW |