Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WEBDATA_SYNCABLE_SERVICE_BACKEND_H_ | |
| 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_SYNCABLE_SERVICE_BACKEND_H_ | |
| 7 | |
| 8 class WebDatabase; | |
| 9 | |
| 10 namespace autofill { | |
| 11 | |
| 12 class AutofillWebDataServiceObserverOnDBThread; | |
| 13 | |
| 14 // Intreface for doing Autofill work directly on the DB thread (used by | |
|
Jói
2013/05/07 19:39:41
Intreface -> Interface
Cait (Slow)
2013/05/07 20:14:56
Done.
| |
| 15 // Sync, mostly), without fully exposing the AutofillWebDataBackend to clients. | |
| 16 class SyncableServiceBackend { | |
|
Jói
2013/05/07 19:39:41
Should this be named AutofillSyncableServiceBacken
Cait (Slow)
2013/05/07 20:14:56
It's in the autofill namespace, so will usually ap
Jói
2013/05/07 20:19:15
With the namespace that seems fine to me; will lea
| |
| 17 public: | |
| 18 virtual ~SyncableServiceBackend() {} | |
| 19 // Get a raw ptr to the WebDatabase | |
|
Jói
2013/05/07 19:39:41
ptr -> pointer, and please end the sentence with a
Cait (Slow)
2013/05/07 20:14:56
Done.
| |
| 20 virtual WebDatabase* GetDatabaseOnDB() = 0; | |
| 21 | |
| 22 // Add an observer to be notified of changes on the DB thread. | |
| 23 virtual void AddObserver( | |
| 24 AutofillWebDataServiceObserverOnDBThread* observer) = 0; | |
| 25 // Remove an observer. | |
| 26 virtual void RemoveObserver( | |
| 27 AutofillWebDataServiceObserverOnDBThread* observer) = 0; | |
| 28 | |
| 29 // Remove expired elements from the database and commit if needed. | |
| 30 virtual void RemoveExpiredFormElementsWrapper() = 0; | |
| 31 | |
| 32 // Notifies listeners on the UI thread that multiple changes have been made to | |
| 33 // to Autofill records of the database. | |
| 34 // NOTE: This method is intended to be called from the DB thread. It | |
| 35 // it asynchronously notifies listeners on the UI thread. | |
|
Jói
2013/05/07 19:39:41
it asynchronously -> asynchronously
Cait (Slow)
2013/05/07 20:14:56
Done.
| |
| 36 virtual void NotifyOfMultipleAutofillChanges() = 0; | |
| 37 }; | |
| 38 | |
| 39 } // autofill | |
|
Jói
2013/05/07 19:39:41
autofill -> namespace autofill
Cait (Slow)
2013/05/07 20:14:56
Done.
| |
| 40 | |
| 41 #endif //COMPONENTS_AUTOFILL_BROWSER_WEBDATA_SYNCABLE_SERVICE_BACKEND_H_ | |
|
Jói
2013/05/07 19:39:41
two spaces before // and one after
Cait (Slow)
2013/05/07 20:14:56
Done.
| |
| OLD | NEW |