OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 6 #define COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "sync/internal_api/public/base/model_type.h" | 9 #include "sync/internal_api/public/base/model_type.h" |
10 #include "sync/internal_api/public/sync_encryption_handler.h" | 10 #include "sync/internal_api/public/sync_encryption_handler.h" |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 virtual void OnBackendInitialized( | 47 virtual void OnBackendInitialized( |
48 const syncer::WeakHandle<syncer::JsBackend>& js_backend, | 48 const syncer::WeakHandle<syncer::JsBackend>& js_backend, |
49 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 49 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
50 debug_info_listener, | 50 debug_info_listener, |
51 const std::string& cache_guid, | 51 const std::string& cache_guid, |
52 bool success) = 0; | 52 bool success) = 0; |
53 | 53 |
54 // The backend queried the server recently and received some updates. | 54 // The backend queried the server recently and received some updates. |
55 virtual void OnSyncCycleCompleted() = 0; | 55 virtual void OnSyncCycleCompleted() = 0; |
56 | 56 |
57 // Configure ran into some kind of error. But it is scheduled to be | |
58 // retried. | |
59 virtual void OnSyncConfigureRetry() = 0; | |
60 | |
61 // Informs the frontned of some network event. These notifications are | 57 // Informs the frontned of some network event. These notifications are |
62 // disabled by default and must be enabled through an explicit request to the | 58 // disabled by default and must be enabled through an explicit request to the |
63 // SyncBackendHost. | 59 // SyncBackendHost. |
64 // | 60 // |
65 // It's disabld by default to avoid copying data across threads when no one | 61 // It's disabld by default to avoid copying data across threads when no one |
66 // is listening for it. | 62 // is listening for it. |
67 virtual void OnProtocolEvent(const syncer::ProtocolEvent& event) = 0; | 63 virtual void OnProtocolEvent(const syncer::ProtocolEvent& event) = 0; |
68 | 64 |
69 // Called when we receive an updated commit counter for a directory type. | 65 // Called when we receive an updated commit counter for a directory type. |
70 // | 66 // |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual void OnExperimentsChanged( | 132 virtual void OnExperimentsChanged( |
137 const syncer::Experiments& experiments) = 0; | 133 const syncer::Experiments& experiments) = 0; |
138 | 134 |
139 // Called when the sync cycle returns there is an user actionable error. | 135 // Called when the sync cycle returns there is an user actionable error. |
140 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; | 136 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; |
141 }; | 137 }; |
142 | 138 |
143 } // namespace sync_driver | 139 } // namespace sync_driver |
144 | 140 |
145 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 141 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
OLD | NEW |