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

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

Issue 8274020: Revert 105404 - [Sync] Refactor non-frontend DTC to handle new API properly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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_EXTENSION_DATA_TYPE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_EXTENSION_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 ExtensionDataTypeController : public FrontendDataTypeController { 15 class ExtensionDataTypeController : public FrontendDataTypeController {
17 public: 16 public:
18 ExtensionDataTypeController( 17 ExtensionDataTypeController(
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 ~ExtensionDataTypeController(); 21 virtual ~ExtensionDataTypeController();
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(ExtensionDataTypeController); 36 DISALLOW_COPY_AND_ASSIGN(ExtensionDataTypeController);
43 }; 37 };
44 38
45 } // namespace browser_sync 39 } // namespace browser_sync
46 40
47 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_ 41 #endif // CHROME_BROWSER_SYNC_GLUE_EXTENSION_DATA_TYPE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/change_processor.cc ('k') | chrome/browser/sync/glue/extension_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698