Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 98 // datatype, propagating such changes into and out of the sync backend | 98 // datatype, propagating such changes into and out of the sync backend |
| 99 // as necessary. | 99 // as necessary. |
| 100 // | 100 // |
| 101 // When a datatype is in the process of becoming active, it may be | 101 // When a datatype is in the process of becoming active, it may be |
| 102 // in some intermediate state. Those finer-grained intermediate states | 102 // in some intermediate state. Those finer-grained intermediate states |
| 103 // are differentiated by the DataTypeController state. | 103 // are differentiated by the DataTypeController state. |
| 104 // | 104 // |
| 105 class ProfileSyncService : public browser_sync::SyncFrontend, | 105 class ProfileSyncService : public browser_sync::SyncFrontend, |
| 106 public browser_sync::SyncPrefObserver, | 106 public browser_sync::SyncPrefObserver, |
| 107 public browser_sync::UnrecoverableErrorHandler, | 107 public browser_sync::UnrecoverableErrorHandler, |
| 108 public NotificationObserver { | 108 public NotificationObserver, |
| 109 public base::SupportsWeakPtr<ProfileSyncService> { | |
|
tim (not reviewing)
2011/10/19 00:16:15
ok, lets do this for now (16), but file an m17 bug
lipalani1
2011/10/19 00:44:29
Done.
| |
| 109 public: | 110 public: |
| 110 typedef ProfileSyncServiceObserver Observer; | 111 typedef ProfileSyncServiceObserver Observer; |
| 111 typedef browser_sync::SyncBackendHost::Status Status; | 112 typedef browser_sync::SyncBackendHost::Status Status; |
| 112 | 113 |
| 113 enum SyncEventCodes { | 114 enum SyncEventCodes { |
| 114 MIN_SYNC_EVENT_CODE = 0, | 115 MIN_SYNC_EVENT_CODE = 0, |
| 115 | 116 |
| 116 // Events starting the sync service. | 117 // Events starting the sync service. |
| 117 START_FROM_NTP = 1, // Sync was started from the ad in NTP | 118 START_FROM_NTP = 1, // Sync was started from the ad in NTP |
| 118 START_FROM_WRENCH = 2, // Sync was started from the Wrench menu. | 119 START_FROM_WRENCH = 2, // Sync was started from the Wrench menu. |
| (...skipping 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 692 FailedDatatypesHandler failed_datatypes_handler_; | 693 FailedDatatypesHandler failed_datatypes_handler_; |
| 693 | 694 |
| 694 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 695 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 695 }; | 696 }; |
| 696 | 697 |
| 697 bool ShouldShowActionOnUI( | 698 bool ShouldShowActionOnUI( |
| 698 const browser_sync::SyncProtocolError& error); | 699 const browser_sync::SyncProtocolError& error); |
| 699 | 700 |
| 700 | 701 |
| 701 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 702 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |