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

Side by Side Diff: components/autofill/browser/webdata/autofill_webdata_service_observer.h

Issue 13928035: WIP Component build of autofill Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make windows compiling Created 7 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER_H_ 5 #ifndef COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER_H_
6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER_H_ 6 #define COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER_H_
7 7
8 #include "components/autofill/browser/webdata/autofill_change.h" 8 #include "components/autofill/browser/webdata/autofill_change.h"
9 #include "components/autofill/common/autofill_export.h"
9 10
10 namespace autofill { 11 namespace autofill {
11 12
12 class AutofillWebDataServiceObserverOnDBThread { 13 class AUTOFILL_EXPORT AutofillWebDataServiceObserverOnDBThread {
13 public: 14 public:
14 // Called on DB thread whenever Autofill entries are changed. 15 // Called on DB thread whenever Autofill entries are changed.
15 virtual void AutofillEntriesChanged(const AutofillChangeList& changes) {} 16 virtual void AutofillEntriesChanged(const AutofillChangeList& changes) {}
16 17
17 // Called on DB thread when an AutofillProfile has been added/removed/updated 18 // Called on DB thread when an AutofillProfile has been added/removed/updated
18 // in the WebDatabase. 19 // in the WebDatabase.
19 virtual void AutofillProfileChanged(const AutofillProfileChange& change) {} 20 virtual void AutofillProfileChanged(const AutofillProfileChange& change) {}
20 21
21 protected: 22 protected:
22 virtual ~AutofillWebDataServiceObserverOnDBThread() {} 23 virtual ~AutofillWebDataServiceObserverOnDBThread() {}
23 }; 24 };
24 25
25 class AutofillWebDataServiceObserverOnUIThread { 26 class AUTOFILL_EXPORT AutofillWebDataServiceObserverOnUIThread {
26 public: 27 public:
27 // Called on UI thread whenever the web database service has finished loading 28 // Called on UI thread whenever the web database service has finished loading
28 // the web database. 29 // the web database.
29 virtual void WebDatabaseLoaded() {} 30 virtual void WebDatabaseLoaded() {}
30 31
31 // Called on UI thread when multiple Autofill entries have been modified by 32 // Called on UI thread when multiple Autofill entries have been modified by
32 // Sync. 33 // Sync.
33 virtual void AutofillMultipleChanged() {} 34 virtual void AutofillMultipleChanged() {}
34 35
35 protected: 36 protected:
36 virtual ~AutofillWebDataServiceObserverOnUIThread() {} 37 virtual ~AutofillWebDataServiceObserverOnUIThread() {}
37 }; 38 };
38 39
39 } // namespace autofill 40 } // namespace autofill
40 41
41 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER _H_ 42 #endif // COMPONENTS_AUTOFILL_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_OBSERVER _H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698