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

Side by Side Diff: components/sync/driver/sync_service.h

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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 | « components/sync/driver/glue/sync_backend_host_mock.cc ('k') | components/sync/engine/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 11 matching lines...) Expand all
22 class GoogleServiceAuthError; 22 class GoogleServiceAuthError;
23 23
24 namespace browser_sync { 24 namespace browser_sync {
25 class ProtocolEventObserver; 25 class ProtocolEventObserver;
26 } 26 }
27 27
28 namespace syncer { 28 namespace syncer {
29 29
30 class BaseTransaction; 30 class BaseTransaction;
31 class JsController; 31 class JsController;
32 class SyncCycleSnapshot;
32 class TypeDebugInfoObserver; 33 class TypeDebugInfoObserver;
33 struct SyncStatus; 34 struct SyncStatus;
34 struct UserShare; 35 struct UserShare;
35 36
36 namespace sessions {
37 class SyncSessionSnapshot;
38 } // namespace sessions
39
40 } // namespace syncer 37 } // namespace syncer
41 38
42 namespace sync_driver { 39 namespace sync_driver {
43 40
44 class DataTypeController; 41 class DataTypeController;
45 class LocalDeviceInfoProvider; 42 class LocalDeviceInfoProvider;
46 class OpenTabsUIDelegate; 43 class OpenTabsUIDelegate;
47 class SyncClient; 44 class SyncClient;
48 45
49 // UIs that need to prevent Sync startup should hold an instance of this class 46 // UIs that need to prevent Sync startup should hold an instance of this class
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // Returns false if the backend was not available for querying; in that case 285 // Returns false if the backend was not available for querying; in that case
289 // the struct will be filled with default data. 286 // the struct will be filled with default data.
290 virtual bool QueryDetailedSyncStatus(syncer::SyncStatus* result) = 0; 287 virtual bool QueryDetailedSyncStatus(syncer::SyncStatus* result) = 0;
291 288
292 // Returns a user-friendly string form of last synced time (in minutes). 289 // Returns a user-friendly string form of last synced time (in minutes).
293 virtual base::string16 GetLastSyncedTimeString() const = 0; 290 virtual base::string16 GetLastSyncedTimeString() const = 0;
294 291
295 // Returns a human readable string describing backend initialization state. 292 // Returns a human readable string describing backend initialization state.
296 virtual std::string GetBackendInitializationStateString() const = 0; 293 virtual std::string GetBackendInitializationStateString() const = 0;
297 294
298 virtual syncer::sessions::SyncSessionSnapshot GetLastSessionSnapshot() 295 virtual syncer::SyncCycleSnapshot GetLastCycleSnapshot() const = 0;
299 const = 0;
300 296
301 // Returns a ListValue indicating the status of all registered types. 297 // Returns a ListValue indicating the status of all registered types.
302 // 298 //
303 // The format is: 299 // The format is:
304 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ] 300 // [ {"name": <name>, "value": <value>, "status": <status> }, ... ]
305 // where <name> is a type's name, <value> is a string providing details for 301 // where <name> is a type's name, <value> is a string providing details for
306 // the type's status, and <status> is one of "error", "warning" or "ok" 302 // the type's status, and <status> is one of "error", "warning" or "ok"
307 // depending on the type's current status. 303 // depending on the type's current status.
308 // 304 //
309 // This function is used by about_sync_util.cc to help populate the about:sync 305 // This function is used by about_sync_util.cc to help populate the about:sync
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 protected: 338 protected:
343 SyncService() {} 339 SyncService() {}
344 340
345 private: 341 private:
346 DISALLOW_COPY_AND_ASSIGN(SyncService); 342 DISALLOW_COPY_AND_ASSIGN(SyncService);
347 }; 343 };
348 344
349 } // namespace sync_driver 345 } // namespace sync_driver
350 346
351 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 347 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_mock.cc ('k') | components/sync/engine/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698