| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_WEBDATA_BACKEND_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ |
| 7 | 7 |
| 8 #include "sync/internal_api/public/base/model_type.h" | 8 #include "components/sync/base/model_type.h" |
| 9 | 9 |
| 10 class WebDatabase; | 10 class WebDatabase; |
| 11 | 11 |
| 12 namespace autofill { | 12 namespace autofill { |
| 13 | 13 |
| 14 class AutofillWebDataServiceObserverOnDBThread; | 14 class AutofillWebDataServiceObserverOnDBThread; |
| 15 | 15 |
| 16 // Interface for doing Autofill work directly on the DB thread (used by | 16 // Interface for doing Autofill work directly on the DB thread (used by |
| 17 // Sync, mostly), without fully exposing the AutofillWebDataBackend to clients. | 17 // Sync, mostly), without fully exposing the AutofillWebDataBackend to clients. |
| 18 class AutofillWebDataBackend { | 18 class AutofillWebDataBackend { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 // Notifies listeners on the UI thread that sync has started for |model_type|. | 42 // Notifies listeners on the UI thread that sync has started for |model_type|. |
| 43 // NOTE: This method is intended to be called from the DB thread. The UI | 43 // NOTE: This method is intended to be called from the DB thread. The UI |
| 44 // thread notifications are asynchronous. | 44 // thread notifications are asynchronous. |
| 45 virtual void NotifyThatSyncHasStarted(syncer::ModelType model_type) = 0; | 45 virtual void NotifyThatSyncHasStarted(syncer::ModelType model_type) = 0; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace autofill | 48 } // namespace autofill |
| 49 | 49 |
| 50 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ | 50 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_H_ |
| OLD | NEW |