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_IMPL_H
_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H
_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H
_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMPL_H
_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/memory/ref_counted_delete_on_message_loop.h" | 9 #include "base/memory/ref_counted_delete_on_message_loop.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
12 #include "base/supports_user_data.h" | 12 #include "base/supports_user_data.h" |
13 #include "components/autofill/core/browser/webdata/autofill_webdata.h" | 13 #include "components/autofill/core/browser/webdata/autofill_webdata.h" |
14 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" | 14 #include "components/autofill/core/browser/webdata/autofill_webdata_backend.h" |
15 #include "components/autofill/core/common/form_field_data.h" | 15 #include "components/autofill/core/common/form_field_data.h" |
16 #include "components/webdata/common/web_data_results.h" | 16 #include "components/webdata/common/web_data_results.h" |
17 #include "components/webdata/common/web_data_service_base.h" | 17 #include "components/webdata/common/web_data_service_base.h" |
18 #include "components/webdata/common/web_data_service_consumer.h" | 18 #include "components/webdata/common/web_data_service_consumer.h" |
19 #include "components/webdata/common/web_database.h" | 19 #include "components/webdata/common/web_database.h" |
20 | 20 |
21 namespace base { | 21 namespace base { |
22 class MessageLoopProxy; | 22 class MessageLoopProxy; |
23 } | 23 } |
24 | 24 |
25 class WebDataServiceBackend; | 25 class WebDataServiceBackend; |
26 | 26 |
27 namespace autofill { | 27 namespace autofill { |
28 | 28 |
29 class AutofillChange; | |
30 class AutofillProfile; | 29 class AutofillProfile; |
31 class AutofillWebDataServiceObserverOnDBThread; | 30 class AutofillWebDataServiceObserverOnDBThread; |
32 class CreditCard; | 31 class CreditCard; |
33 | 32 |
34 // Backend implentation for the AutofillWebDataService. This class runs on the | 33 // Backend implentation for the AutofillWebDataService. This class runs on the |
35 // DB thread, as it handles reads and writes to the WebDatabase, and functions | 34 // DB thread, as it handles reads and writes to the WebDatabase, and functions |
36 // in it should only be called from that thread. Most functions here are just | 35 // in it should only be called from that thread. Most functions here are just |
37 // the implementations of the corresponding functions in the Autofill | 36 // the implementations of the corresponding functions in the Autofill |
38 // WebDataService. | 37 // WebDataService. |
39 // This class is destroyed on the DB thread. | 38 // This class is destroyed on the DB thread. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 scoped_refptr<WebDataServiceBackend> web_database_backend_; | 189 scoped_refptr<WebDataServiceBackend> web_database_backend_; |
191 | 190 |
192 base::Closure on_changed_callback_; | 191 base::Closure on_changed_callback_; |
193 | 192 |
194 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackendImpl); | 193 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataBackendImpl); |
195 }; | 194 }; |
196 | 195 |
197 } // namespace autofill | 196 } // namespace autofill |
198 | 197 |
199 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMP
L_H_ | 198 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_BACKEND_IMP
L_H_ |
OLD | NEW |