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

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

Issue 6811003: [Sync] Make generic non-frontend thread datatype controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copy paste :( Created 9 years, 8 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_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/sync/glue/autofill_data_type_controller.h" 9 #include "chrome/browser/sync/glue/autofill_data_type_controller.h"
10 #include "chrome/browser/sync/profile_sync_factory.h" 10 #include "chrome/browser/sync/profile_sync_factory.h"
11 11
12 namespace browser_sync { 12 namespace browser_sync {
13 13
14 class AutofillProfileDataTypeController : public AutofillDataTypeController { 14 class AutofillProfileDataTypeController : public AutofillDataTypeController {
15 public: 15 public:
16 AutofillProfileDataTypeController( 16 AutofillProfileDataTypeController(
17 ProfileSyncFactory* profile_sync_factory, 17 ProfileSyncFactory* profile_sync_factory,
18 Profile* profile, 18 Profile* profile);
19 ProfileSyncService* sync_service);
20 virtual ~AutofillProfileDataTypeController(); 19 virtual ~AutofillProfileDataTypeController();
21 20
22 virtual syncable::ModelType type() const; 21 virtual syncable::ModelType type() const;
23 22
24 virtual std::string name() const;
25
26 protected: 23 protected:
27 virtual ProfileSyncFactory::SyncComponents CreateSyncComponents( 24 virtual void CreateSyncComponents();
28 ProfileSyncService* profile_sync_service, 25 virtual void RecordUnrecoverableError(
29 WebDatabase* web_database, 26 const tracked_objects::Location& from_here,
30 PersonalDataManager* personal_data, 27 const std::string& message);
31 browser_sync::UnrecoverableErrorHandler* error_handler); 28 virtual void RecordAssociationTime(base::TimeDelta time);
29 virtual void RecordStartFailure(StartResult result);
32 }; 30 };
33 31
34 } // namespace browser_sync 32 } // namespace browser_sync
35 33
36 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ 34 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698