| 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_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); | 19 ProfileSyncService* sync_service); |
| 20 virtual ~AutofillProfileDataTypeController(); | 20 virtual ~AutofillProfileDataTypeController(); |
| 21 | 21 |
| 22 virtual syncable::ModelType type() const; | 22 virtual syncable::ModelType type() const; |
| 23 | 23 |
| 24 virtual std::string name() const; | |
| 25 | |
| 26 protected: | 24 protected: |
| 27 virtual ProfileSyncFactory::SyncComponents CreateSyncComponents( | 25 virtual void CreateSyncComponents(); |
| 28 ProfileSyncService* profile_sync_service, | 26 virtual void RecordUnrecoverableError( |
| 29 WebDatabase* web_database, | 27 const tracked_objects::Location& from_here, |
| 30 PersonalDataManager* personal_data, | 28 const std::string& message); |
| 31 browser_sync::UnrecoverableErrorHandler* error_handler); | 29 virtual void RecordAssociationTime(base::TimeDelta time); |
| 30 virtual void RecordStartFailure(StartResult result); |
| 32 }; | 31 }; |
| 33 | 32 |
| 34 } // namespace browser_sync | 33 } // namespace browser_sync |
| 35 | 34 |
| 36 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ | 35 #endif // CHROME_BROWSER_SYNC_GLUE_AUTOFILL_PROFILE_DATA_TYPE_CONTROLLER_H_ |
| OLD | NEW |