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 virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0; | |
tim (not reviewing)
2011/08/23 13:58:52
Add a descriptive comment.
Nicolas Zea
2011/08/23 16:48:25
Done.
| |
105 | |
104 protected: | 106 protected: |
105 // Don't delete through SyncFrontend interface. | 107 // Don't delete through SyncFrontend interface. |
106 virtual ~SyncFrontend() { | 108 virtual ~SyncFrontend() { |
107 } | 109 } |
108 private: | 110 private: |
109 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); | 111 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); |
110 }; | 112 }; |
111 | 113 |
112 // A UI-thread safe API into the sync backend that "hosts" the top-level | 114 // 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 | 115 // 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 | 614 |
613 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 615 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
614 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 616 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
615 | 617 |
616 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 618 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
617 }; | 619 }; |
618 | 620 |
619 } // namespace browser_sync | 621 } // namespace browser_sync |
620 | 622 |
621 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 623 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
OLD | NEW |