OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/callback.h" | 9 #include "base/callback.h" |
10 #include "chrome/browser/sync/internal_api/configure_reason.h" | 10 #include "chrome/browser/sync/internal_api/configure_reason.h" |
11 #include "chrome/browser/sync/syncable/model_type.h" | 11 #include "sync/syncable/model_type.h" |
12 | 12 |
13 namespace browser_sync { | 13 namespace browser_sync { |
14 | 14 |
15 // The DataTypeConfigurer interface abstracts out the action of | 15 // The DataTypeConfigurer interface abstracts out the action of |
16 // configuring a set of new data types and cleaning up after a set of | 16 // configuring a set of new data types and cleaning up after a set of |
17 // removed data types. | 17 // removed data types. |
18 class BackendDataTypeConfigurer { | 18 class BackendDataTypeConfigurer { |
19 public: | 19 public: |
20 // Enum representing the two "modes" of configuration. | 20 // Enum representing the two "modes" of configuration. |
21 // WITHOUT_NIGORI is only used by migration. | 21 // WITHOUT_NIGORI is only used by migration. |
(...skipping 18 matching lines...) Expand all Loading... |
40 base::Callback<void(syncable::ModelTypeSet)> ready_task, | 40 base::Callback<void(syncable::ModelTypeSet)> ready_task, |
41 base::Callback<void()> retry_callback) = 0; | 41 base::Callback<void()> retry_callback) = 0; |
42 | 42 |
43 protected: | 43 protected: |
44 virtual ~BackendDataTypeConfigurer() {} | 44 virtual ~BackendDataTypeConfigurer() {} |
45 }; | 45 }; |
46 | 46 |
47 } // namespace browser_sync | 47 } // namespace browser_sync |
48 | 48 |
49 #endif // CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ | 49 #endif // CHROME_BROWSER_SYNC_GLUE_BACKEND_DATA_TYPE_CONFIGURER_H_ |
OLD | NEW |