| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_CONT
ROLLER_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 protected: | 37 protected: |
| 38 // AsyncDirectoryTypeController: | 38 // AsyncDirectoryTypeController: |
| 39 bool StartModels() override; | 39 bool StartModels() override; |
| 40 void StopModels() override; | 40 void StopModels() override; |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 // Callback to notify that WebDatabase has loaded. | 43 // Callback to notify that WebDatabase has loaded. |
| 44 void WebDatabaseLoaded(); | 44 void WebDatabaseLoaded(); |
| 45 | 45 |
| 46 // A pointer to the sync client. |
| 47 syncer::SyncClient* const sync_client_; |
| 48 |
| 46 // A reference to the AutofillWebDataService for this controller. | 49 // A reference to the AutofillWebDataService for this controller. |
| 47 scoped_refptr<autofill::AutofillWebDataService> web_data_service_; | 50 scoped_refptr<autofill::AutofillWebDataService> web_data_service_; |
| 48 | 51 |
| 49 // Whether the database loaded callback has been registered. | 52 // Whether the database loaded callback has been registered. |
| 50 bool callback_registered_; | 53 bool callback_registered_; |
| 51 | 54 |
| 52 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); | 55 DISALLOW_COPY_AND_ASSIGN(AutofillProfileDataTypeController); |
| 53 }; | 56 }; |
| 54 | 57 |
| 55 } // namespace browser_sync | 58 } // namespace browser_sync |
| 56 | 59 |
| 57 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C
ONTROLLER_H_ | 60 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_PROFILE_DATA_TYPE_C
ONTROLLER_H_ |
| OLD | NEW |