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

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

Issue 2663783002: [Sync] Split encryption state and logic out of PSS and SBHI. (Closed)
Patch Set: Tweak comment. Created 3 years, 10 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
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 20 matching lines...) Expand all
31 class DataTypeController; 31 class DataTypeController;
32 class JsController; 32 class JsController;
33 class LocalDeviceInfoProvider; 33 class LocalDeviceInfoProvider;
34 class ProtocolEventObserver; 34 class ProtocolEventObserver;
35 class SyncClient; 35 class SyncClient;
36 class SyncCycleSnapshot; 36 class SyncCycleSnapshot;
37 class TypeDebugInfoObserver; 37 class TypeDebugInfoObserver;
38 struct SyncStatus; 38 struct SyncStatus;
39 struct UserShare; 39 struct UserShare;
40 40
41 // Events in ClearServerData flow to be recorded in histogram. Existing
42 // constants should not be deleted or reordered. New ones shold be added at the
43 // end, before CLEAR_SERVER_DATA_MAX.
44 enum ClearServerDataEvents {
45 // ClearServerData started after user switched to custom passphrase.
46 CLEAR_SERVER_DATA_STARTED,
47 // DataTypeManager reported that catchup configuration failed.
48 CLEAR_SERVER_DATA_CATCHUP_FAILED,
49 // ClearServerData flow restarted after browser restart.
50 CLEAR_SERVER_DATA_RETRIED,
51 // Success.
52 CLEAR_SERVER_DATA_SUCCEEDED,
53 // Client received RECET_LOCAL_SYNC_DATA after custom passphrase was enabled
54 // on different client.
55 CLEAR_SERVER_DATA_RESET_LOCAL_DATA_RECEIVED,
56 CLEAR_SERVER_DATA_MAX
57 };
58
41 // UIs that need to prevent Sync startup should hold an instance of this class 59 // UIs that need to prevent Sync startup should hold an instance of this class
42 // until the user has finished modifying sync settings. This is not an inner 60 // until the user has finished modifying sync settings. This is not an inner
43 // class of SyncService to enable forward declarations. 61 // class of SyncService to enable forward declarations.
44 class SyncSetupInProgressHandle { 62 class SyncSetupInProgressHandle {
45 public: 63 public:
46 // UIs should not construct this directly, but instead call 64 // UIs should not construct this directly, but instead call
47 // SyncService::GetSetupInProgress(). 65 // SyncService::GetSetupInProgress().
48 explicit SyncSetupInProgressHandle(base::Closure on_destroy); 66 explicit SyncSetupInProgressHandle(base::Closure on_destroy);
49 67
50 ~SyncSetupInProgressHandle(); 68 ~SyncSetupInProgressHandle();
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 protected: 350 protected:
333 SyncService() {} 351 SyncService() {}
334 352
335 private: 353 private:
336 DISALLOW_COPY_AND_ASSIGN(SyncService); 354 DISALLOW_COPY_AND_ASSIGN(SyncService);
337 }; 355 };
338 356
339 } // namespace syncer 357 } // namespace syncer
340 358
341 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 359 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_impl_unittest.cc ('k') | components/sync/driver/sync_service_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698