| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 // encrypted using the accepted passphrase. | 87 // encrypted using the accepted passphrase. |
| 88 virtual void OnPassphraseAccepted() = 0; | 88 virtual void OnPassphraseAccepted() = 0; |
| 89 | 89 |
| 90 virtual void OnEncryptionComplete( | 90 virtual void OnEncryptionComplete( |
| 91 const syncable::ModelTypeSet& encrypted_types) = 0; | 91 const syncable::ModelTypeSet& encrypted_types) = 0; |
| 92 | 92 |
| 93 // Called to perform migration of |types|. | 93 // Called to perform migration of |types|. |
| 94 virtual void OnMigrationNeededForTypes( | 94 virtual void OnMigrationNeededForTypes( |
| 95 const syncable::ModelTypeSet& types) = 0; | 95 const syncable::ModelTypeSet& types) = 0; |
| 96 | 96 |
| 97 // Inform the Frontend that new datatypes are available for registration. |
| 98 virtual void OnDataTypesChanged(const syncable::ModelTypeSet& to_add) = 0; |
| 99 |
| 97 protected: | 100 protected: |
| 98 // Don't delete through SyncFrontend interface. | 101 // Don't delete through SyncFrontend interface. |
| 99 virtual ~SyncFrontend() { | 102 virtual ~SyncFrontend() { |
| 100 } | 103 } |
| 101 private: | 104 private: |
| 102 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); | 105 DISALLOW_COPY_AND_ASSIGN(SyncFrontend); |
| 103 }; | 106 }; |
| 104 | 107 |
| 105 // A UI-thread safe API into the sync backend that "hosts" the top-level | 108 // A UI-thread safe API into the sync backend that "hosts" the top-level |
| 106 // syncapi element, the SyncManager, on its own thread. This class handles | 109 // syncapi element, the SyncManager, on its own thread. This class handles |
| (...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 | 543 |
| 541 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. | 544 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. |
| 542 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; | 545 scoped_ptr<sessions::SyncSessionSnapshot> last_snapshot_; |
| 543 | 546 |
| 544 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); | 547 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); |
| 545 }; | 548 }; |
| 546 | 549 |
| 547 } // namespace browser_sync | 550 } // namespace browser_sync |
| 548 | 551 |
| 549 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ | 552 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ |
| OLD | NEW |