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_APP_DATA_TYPE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ |
6 #define CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "chrome/browser/sync/glue/generic_change_processor.h" | |
12 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" | 11 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" |
13 | 12 |
14 namespace browser_sync { | 13 namespace browser_sync { |
15 | 14 |
16 class AppDataTypeController : public FrontendDataTypeController { | 15 class AppDataTypeController : public FrontendDataTypeController { |
17 public: | 16 public: |
18 AppDataTypeController( | 17 AppDataTypeController( |
19 ProfileSyncFactory* profile_sync_factory, | 18 ProfileSyncFactory* profile_sync_factory, |
20 Profile* profile, | 19 Profile* profile, |
21 ProfileSyncService* sync_service); | 20 ProfileSyncService* sync_service); |
22 virtual ~AppDataTypeController(); | 21 virtual ~AppDataTypeController(); |
23 | 22 |
24 // DataTypeController implementation. | 23 // DataTypeController implementation. |
25 virtual syncable::ModelType type() const; | 24 virtual syncable::ModelType type() const; |
26 | 25 |
27 protected: | |
28 virtual GenericChangeProcessor* change_processor() const OVERRIDE; | |
29 | |
30 private: | 26 private: |
31 // DataTypeController implementations. | 27 // DataTypeController implementations. |
32 virtual bool StartModels(); | 28 virtual bool StartModels(); |
33 virtual void CreateSyncComponents(); | 29 virtual void CreateSyncComponents(); |
34 virtual void RecordUnrecoverableError( | 30 virtual void RecordUnrecoverableError( |
35 const tracked_objects::Location& from_here, | 31 const tracked_objects::Location& from_here, |
36 const std::string& message); | 32 const std::string& message); |
37 virtual void RecordAssociationTime(base::TimeDelta time); | 33 virtual void RecordAssociationTime(base::TimeDelta time); |
38 virtual void RecordStartFailure(StartResult result); | 34 virtual void RecordStartFailure(StartResult result); |
39 | 35 |
40 scoped_ptr<GenericChangeProcessor> generic_change_processor_; | |
41 | |
42 DISALLOW_COPY_AND_ASSIGN(AppDataTypeController); | 36 DISALLOW_COPY_AND_ASSIGN(AppDataTypeController); |
43 }; | 37 }; |
44 | 38 |
45 } // namespace browser_sync | 39 } // namespace browser_sync |
46 | 40 |
47 #endif // CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ | 41 #endif // CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ |
OLD | NEW |