| OLD | NEW |
| 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 ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/synchronization/waitable_event.h" | 10 #include "base/synchronization/waitable_event.h" |
| 11 #include "components/autofill/browser/webdata/autofill_webdata_service.h" | 11 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
| 12 #include "components/webdata/common/web_data_service_consumer.h" | 12 #include "components/webdata/common/web_data_service_consumer.h" |
| 13 #include "components/webdata/common/web_database_service.h" | 13 #include "components/webdata/common/web_database_service.h" |
| 14 | 14 |
| 15 namespace android_webview { | 15 namespace android_webview { |
| 16 | 16 |
| 17 // Handles the database operations necessary to implement the autocomplete | 17 // Handles the database operations necessary to implement the autocomplete |
| 18 // functionality. This includes creating and initializing the components that | 18 // functionality. This includes creating and initializing the components that |
| 19 // handle the database backend, and providing a synchronous interface when | 19 // handle the database backend, and providing a synchronous interface when |
| 20 // needed (the chromium database components have an async. interface). | 20 // needed (the chromium database components have an async. interface). |
| 21 class AwFormDatabaseService : public WebDataServiceConsumer { | 21 class AwFormDatabaseService : public WebDataServiceConsumer { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 scoped_refptr<autofill::AutofillWebDataService> autofill_data_; | 55 scoped_refptr<autofill::AutofillWebDataService> autofill_data_; |
| 56 scoped_refptr<WebDatabaseService> web_database_; | 56 scoped_refptr<WebDatabaseService> web_database_; |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(AwFormDatabaseService); | 58 DISALLOW_COPY_AND_ASSIGN(AwFormDatabaseService); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 } // namespace android_webview | 61 } // namespace android_webview |
| 62 | 62 |
| 63 #endif // ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ | 63 #endif // ANDROID_WEBVIEW_BROWSER_AW_FORM_DATABASE_SERVICE_H_ |
| OLD | NEW |