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, |
51 bool success) = 0; | 52 bool success) = 0; |
52 | 53 |
53 // The backend queried the server recently and received some updates. | 54 // The backend queried the server recently and received some updates. |
54 virtual void OnSyncCycleCompleted() = 0; | 55 virtual void OnSyncCycleCompleted() = 0; |
55 | 56 |
56 // Configure ran into some kind of error. But it is scheduled to be | 57 // Configure ran into some kind of error. But it is scheduled to be |
57 // retried. | 58 // retried. |
58 virtual void OnSyncConfigureRetry() = 0; | 59 virtual void OnSyncConfigureRetry() = 0; |
59 | 60 |
60 // Informs the frontned of some network event. These notifications are | 61 // Informs the frontned of some network event. These notifications are |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 virtual void OnExperimentsChanged( | 136 virtual void OnExperimentsChanged( |
136 const syncer::Experiments& experiments) = 0; | 137 const syncer::Experiments& experiments) = 0; |
137 | 138 |
138 // Called when the sync cycle returns there is an user actionable error. | 139 // Called when the sync cycle returns there is an user actionable error. |
139 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; | 140 virtual void OnActionableError(const syncer::SyncProtocolError& error) = 0; |
140 }; | 141 }; |
141 | 142 |
142 } // namespace browser_sync | 143 } // namespace browser_sync |
143 | 144 |
144 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ | 145 #endif // COMPONENTS_SYNC_DRIVER_SYNC_FRONTEND_H_ |
OLD | NEW |