Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: components/sync_driver/sync_frontend.h

Issue 367153005: Sync: Refactoring of DEVICE_INFO syncable type - Part 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed scoped_ptr issue in ProfileSyncService constructor Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698