| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DATA_TYPE_MANAGER_H__ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ | 6 #define CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 virtual void ConfigureWithoutNigori(const TypeSet& desired_types, | 87 virtual void ConfigureWithoutNigori(const TypeSet& desired_types, |
| 88 sync_api::ConfigureReason reason) = 0; | 88 sync_api::ConfigureReason reason) = 0; |
| 89 | 89 |
| 90 // Synchronously stops all registered data types. If called after | 90 // Synchronously stops all registered data types. If called after |
| 91 // Configure() is called but before it finishes, it will abort the | 91 // Configure() is called but before it finishes, it will abort the |
| 92 // configure and any data types that have been started will be | 92 // configure and any data types that have been started will be |
| 93 // stopped. | 93 // stopped. |
| 94 virtual void Stop() = 0; | 94 virtual void Stop() = 0; |
| 95 | 95 |
| 96 // Reference to map of data type controllers. | |
| 97 virtual const DataTypeController::TypeMap& controllers() = 0; | |
| 98 | |
| 99 // The current state of the data type manager. | 96 // The current state of the data type manager. |
| 100 virtual State state() = 0; | 97 virtual State state() = 0; |
| 101 }; | 98 }; |
| 102 | 99 |
| 103 } // namespace browser_sync | 100 } // namespace browser_sync |
| 104 | 101 |
| 105 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ | 102 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ |
| OLD | NEW |