Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: chrome/browser/sync/glue/app_data_type_controller.h

Issue 8065016: [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase++++ Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
11 #include "chrome/browser/sync/glue/frontend_data_type_controller.h" 12 #include "chrome/browser/sync/glue/frontend_data_type_controller.h"
12 13
13 namespace browser_sync { 14 namespace browser_sync {
14 15
15 class AppDataTypeController : public FrontendDataTypeController { 16 class AppDataTypeController : public FrontendDataTypeController {
16 public: 17 public:
17 AppDataTypeController( 18 AppDataTypeController(
18 ProfileSyncFactory* profile_sync_factory, 19 ProfileSyncFactory* profile_sync_factory,
19 Profile* profile, 20 Profile* profile,
20 ProfileSyncService* sync_service); 21 ProfileSyncService* sync_service);
21 virtual ~AppDataTypeController(); 22 virtual ~AppDataTypeController();
22 23
23 // DataTypeController implementation. 24 // DataTypeController implementation.
24 virtual syncable::ModelType type() const; 25 virtual syncable::ModelType type() const;
25 26
27 protected:
28 virtual GenericChangeProcessor* change_processor() const OVERRIDE;
29
26 private: 30 private:
27 // DataTypeController implementations. 31 // DataTypeController implementations.
28 virtual bool StartModels(); 32 virtual bool StartModels();
29 virtual void CreateSyncComponents(); 33 virtual void CreateSyncComponents();
30 virtual void RecordUnrecoverableError( 34 virtual void RecordUnrecoverableError(
31 const tracked_objects::Location& from_here, 35 const tracked_objects::Location& from_here,
32 const std::string& message); 36 const std::string& message);
33 virtual void RecordAssociationTime(base::TimeDelta time); 37 virtual void RecordAssociationTime(base::TimeDelta time);
34 virtual void RecordStartFailure(StartResult result); 38 virtual void RecordStartFailure(StartResult result);
35 39
40 scoped_ptr<GenericChangeProcessor> generic_change_processor_;
41
36 DISALLOW_COPY_AND_ASSIGN(AppDataTypeController); 42 DISALLOW_COPY_AND_ASSIGN(AppDataTypeController);
37 }; 43 };
38 44
39 } // namespace browser_sync 45 } // namespace browser_sync
40 46
41 #endif // CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_ 47 #endif // CHROME_BROWSER_SYNC_GLUE_APP_DATA_TYPE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/api/syncable_service.h ('k') | chrome/browser/sync/glue/app_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698