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 30 matching lines...) Expand all Loading... |
41 // accept and process changes. If success is false, initialization | 41 // accept and process changes. If success is false, initialization |
42 // wasn't able to be completed and should be retried. | 42 // wasn't able to be completed and should be retried. |
43 // | 43 // |
44 // |js_backend| is what about:sync interacts with; it's different | 44 // |js_backend| is what about:sync interacts with; it's different |
45 // from the 'Backend' in 'OnBackendInitialized' (unfortunately). It | 45 // from the 'Backend' in 'OnBackendInitialized' (unfortunately). It |
46 // is initialized only if |success| is true. | 46 // is initialized only if |success| is true. |
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, | |
52 bool success) = 0; | 51 bool success) = 0; |
53 | 52 |
54 // The backend queried the server recently and received some updates. | 53 // The backend queried the server recently and received some updates. |
55 virtual void OnSyncCycleCompleted() = 0; | 54 virtual void OnSyncCycleCompleted() = 0; |
56 | 55 |
57 // Configure ran into some kind of error. But it is scheduled to be | 56 // Configure ran into some kind of error. But it is scheduled to be |
58 // retried. | 57 // retried. |
59 virtual void OnSyncConfigureRetry() = 0; | 58 virtual void OnSyncConfigureRetry() = 0; |
60 | 59 |
61 // Informs the frontned of some network event. These notifications are | 60 // Informs the frontned of some network event. These notifications are |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual void OnExperimentsChanged( | 135 virtual void OnExperimentsChanged( |
137 const syncer::Experiments& experiments) = 0; | 136 const syncer::Experiments& experiments) = 0; |
138 | 137 |
139 // Called when the sync cycle returns there is an user actionable error. | 138 // Called when the sync cycle returns there is an user actionable error. |
140 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; | 139 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; |
141 }; | 140 }; |
142 | 141 |
143 } // namespace browser_sync | 142 } // namespace browser_sync |
144 | 143 |
145 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 144 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
OLD | NEW |