OLD | NEW |
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 SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ | 5 #ifndef COMPONENTS_SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ |
6 #define SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ | 6 #define COMPONENTS_SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "sync/api/entity_data.h" | 11 #include "components/sync/api/entity_data.h" |
12 #include "sync/api/sync_error_factory.h" | 12 #include "components/sync/api/sync_error_factory.h" |
13 #include "sync/base/sync_export.h" | 13 #include "components/sync/base/sync_export.h" |
14 #include "sync/internal_api/public/activation_context.h" | 14 #include "components/sync/core/activation_context.h" |
15 | 15 |
16 namespace syncer { | 16 namespace syncer { |
17 class DataTypeErrorHandler; | 17 class DataTypeErrorHandler; |
18 class SyncError; | 18 class SyncError; |
19 } // namespace syncer | 19 } // namespace syncer |
20 | 20 |
21 namespace syncer_v2 { | 21 namespace syncer_v2 { |
22 | 22 |
23 class MetadataBatch; | 23 class MetadataBatch; |
24 class MetadataChangeList; | 24 class MetadataChangeList; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 virtual void OnSyncStarting(syncer::DataTypeErrorHandler* error_handler, | 60 virtual void OnSyncStarting(syncer::DataTypeErrorHandler* error_handler, |
61 const StartCallback& callback) = 0; | 61 const StartCallback& callback) = 0; |
62 | 62 |
63 // Indicates that sync is being disabled permanently for this data type. All | 63 // Indicates that sync is being disabled permanently for this data type. All |
64 // metadata should be erased from storage. | 64 // metadata should be erased from storage. |
65 virtual void DisableSync() = 0; | 65 virtual void DisableSync() = 0; |
66 }; | 66 }; |
67 | 67 |
68 } // namespace syncer_v2 | 68 } // namespace syncer_v2 |
69 | 69 |
70 #endif // SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ | 70 #endif // COMPONENTS_SYNC_API_MODEL_TYPE_CHANGE_PROCESSOR_H_ |
OLD | NEW |