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_GLUE_SYNC_BACKEND_HOST_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // encrypted using the accepted passphrase. | 94 // encrypted using the accepted passphrase. |
95 virtual void OnPassphraseAccepted() = 0; | 95 virtual void OnPassphraseAccepted() = 0; |
96 | 96 |
97 virtual void OnEncryptionComplete( | 97 virtual void OnEncryptionComplete( |
98 const syncable::ModelTypeSet& encrypted_types) = 0; | 98 const syncable::ModelTypeSet& encrypted_types) = 0; |
99 | 99 |
100 // Called to perform migration of |types|. | 100 // Called to perform migration of |types|. |
101 virtual void OnMigrationNeededForTypes( | 101 virtual void OnMigrationNeededForTypes( |
102 const syncable::ModelTypeSet& types) = 0; | 102 const syncable::ModelTypeSet& types) = 0; |
103 | 103 |
| 104 // Inform the Frontend that new datatypes are available for registration. |
| 105 virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0; |
| 106 |
104 protected: | 107 protected: |
105 // Don't delete through SyncFrontend interface. | 108 // Don't delete through SyncFrontend interface. |
106 virtual ~SyncFrontend() { | 109 virtual ~SyncFrontend() { |
107 } | 110 } |
108 private: | 111 private: |
109 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); | 112 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); |
110 }; | 113 }; |
111 | 114 |
112 // A UI-thread safe API into the sync backend that "hosts" the top-level | 115 // A UI-thread safe API into the sync backend that "hosts" the top-level |
113 // syncapi element, the SyncManager, on its own thread. This class handles | 116 // syncapi element, the SyncManager, on its own thread. This class handles |
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 | 615 |
613 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 616 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
614 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 617 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
615 | 618 |
616 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 619 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
617 }; | 620 }; |
618 | 621 |
619 } // namespace browser_sync | 622 } // namespace browser_sync |
620 | 623 |
621 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 624 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |