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.
5 #include "components/autofill/core/browser/test_autofill_driver.h"
7 #include "base/threading/sequenced_worker_pool.h"
11 TestAutofillDriver::TestAutofillDriver(content::WebContents* web_contents)
12 : content::WebContentsObserver(web_contents),
13 blocking_pool_(new base::SequencedWorkerPool(4, "TestAutofillDriver")) {}
15 TestAutofillDriver::~TestAutofillDriver() {
16 blocking_pool_->Shutdown();
19 content::WebContents* TestAutofillDriver::GetWebContents() {
20 return web_contents();
23 base::SequencedWorkerPool* TestAutofillDriver::GetBlockingPool() {
24 return blocking_pool_;
27 bool TestAutofillDriver::RendererIsAvailable() {
31 void TestAutofillDriver::SetRendererActionOnFormDataReception(
32 RendererFormDataAction action) {
35 void TestAutofillDriver::SendFormDataToRenderer(int query_id,
36 const FormData& form_data) {
39 void TestAutofillDriver::SendAutofillTypePredictionsToRenderer(
40 const std::vector<FormStructure*>& forms) {
43 void TestAutofillDriver::RendererShouldClearFilledForm() {
46 void TestAutofillDriver::RendererShouldClearPreviewedForm() {
49 } // namespace autofill