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_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 <list> | 9 #include <list> |
10 #include <set> | 10 #include <set> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/sync/api/sync_error.h" | 14 #include "chrome/browser/sync/api/sync_error.h" |
15 #include "chrome/browser/sync/glue/data_type_controller.h" | 15 #include "chrome/browser/sync/glue/data_type_controller.h" |
16 #include "chrome/browser/sync/internal_api/configure_reason.h" | 16 #include "chrome/browser/sync/internal_api/configure_reason.h" |
17 #include "chrome/browser/sync/syncable/model_type.h" | 17 #include "sync/syncable/model_type.h" |
18 | 18 |
19 namespace browser_sync { | 19 namespace browser_sync { |
20 | 20 |
21 // This interface is for managing the start up and shut down life cycle | 21 // This interface is for managing the start up and shut down life cycle |
22 // of many different syncable data types. | 22 // of many different syncable data types. |
23 class DataTypeManager { | 23 class DataTypeManager { |
24 public: | 24 public: |
25 enum State { | 25 enum State { |
26 STOPPED, // No data types are currently running. | 26 STOPPED, // No data types are currently running. |
27 DOWNLOAD_PENDING, // Not implemented yet: Waiting for the syncer to | 27 DOWNLOAD_PENDING, // Not implemented yet: Waiting for the syncer to |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 // stopped. | 94 // stopped. |
95 virtual void Stop() = 0; | 95 virtual void Stop() = 0; |
96 | 96 |
97 // The current state of the data type manager. | 97 // The current state of the data type manager. |
98 virtual State state() const = 0; | 98 virtual State state() const = 0; |
99 }; | 99 }; |
100 | 100 |
101 } // namespace browser_sync | 101 } // namespace browser_sync |
102 | 102 |
103 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ | 103 #endif // CHROME_BROWSER_SYNC_GLUE_DATA_TYPE_MANAGER_H__ |
OLD | NEW |