| 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 <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 783 // |invalidator_registrar_| is not NULL). | 783 // |invalidator_registrar_| is not NULL). |
| 784 void UpdateInvalidatorRegistrarState(); | 784 void UpdateInvalidatorRegistrarState(); |
| 785 | 785 |
| 786 // Destroys / recreates an instance of ProfileSyncService. Used exclusively by | 786 // Destroys / recreates an instance of ProfileSyncService. Used exclusively by |
| 787 // the sync integration tests so they can restart sync from scratch without | 787 // the sync integration tests so they can restart sync from scratch without |
| 788 // tearing down and recreating the browser process. Needed because simply | 788 // tearing down and recreating the browser process. Needed because simply |
| 789 // calling Shutdown() and Initialize() will not recreate other internal | 789 // calling Shutdown() and Initialize() will not recreate other internal |
| 790 // objects like SyncBackendHost, SyncManager, etc. | 790 // objects like SyncBackendHost, SyncManager, etc. |
| 791 void ResetForTest(); | 791 void ResetForTest(); |
| 792 | 792 |
| 793 // Sets a flag for enabling an experiment. |
| 794 void SetExperimentFlag(const std::string& experiment); |
| 795 |
| 793 // Factory used to create various dependent objects. | 796 // Factory used to create various dependent objects. |
| 794 scoped_ptr<ProfileSyncComponentsFactory> factory_; | 797 scoped_ptr<ProfileSyncComponentsFactory> factory_; |
| 795 | 798 |
| 796 // The profile whose data we are synchronizing. | 799 // The profile whose data we are synchronizing. |
| 797 Profile* profile_; | 800 Profile* profile_; |
| 798 | 801 |
| 799 // The class that handles getting, setting, and persisting sync | 802 // The class that handles getting, setting, and persisting sync |
| 800 // preferences. | 803 // preferences. |
| 801 browser_sync::SyncPrefs sync_prefs_; | 804 browser_sync::SyncPrefs sync_prefs_; |
| 802 | 805 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 931 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
| 929 | 932 |
| 930 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 933 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 931 }; | 934 }; |
| 932 | 935 |
| 933 bool ShouldShowActionOnUI( | 936 bool ShouldShowActionOnUI( |
| 934 const syncer::SyncProtocolError& error); | 937 const syncer::SyncProtocolError& error); |
| 935 | 938 |
| 936 | 939 |
| 937 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 940 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |